UnitsManager.GetCurrentUnitName Method

Looks for the unit with the specified name and returns its text representation.

Definition

Namespace: SMath.Manager
Assembly: SMath.Manager (in SMath.Manager.dll) Version: 1.73.9126.0
C#
public static string GetCurrentUnitName(
	SessionProfile sessionProfile,
	string name,
	bool standard
)

Parameters

sessionProfile  SessionProfile
Session profile to use.
name  String
Name of the unit.
standard  Boolean
true to use only standard units, false to use the units for the current session.

Return Value

String
Text representation of the unit or name if the unit is not found.

See Also