RegionEvaluableGetBestDimension(SessionProfile, Term, String) Method

Looks up for the best output dimension ID and unit of measurement for the given calculation result.

Definition

Namespace: SMath.Controls
Assembly: SMath.Controls (in SMath.Controls.dll) Version: 1.73.9126.0
C#
protected static int GetBestDimension(
	SessionProfile sessionProfile,
	Term[] term,
	out string unitName
)

Parameters

sessionProfile  SessionProfile
Session properties.
term  Term
Units provided in the calculation result.
unitName  String
Returns best applicable unit of measurement.

Return Value

Int32
The best applicable dimension ID.

See Also