UnitsManager.GetCurrentUnitName Method
Looks for the unit with the specified name and returns its text representation.
Namespace: SMath.ManagerAssembly: SMath.Manager (in SMath.Manager.dll) Version: 1.73.9126.0
public static string GetCurrentUnitName(
SessionProfile sessionProfile,
string name,
bool standard
)
Public Shared Function GetCurrentUnitName (
sessionProfile As SessionProfile,
name As String,
standard As Boolean
) As String
public:
static String^ GetCurrentUnitName(
SessionProfile^ sessionProfile,
String^ name,
bool standard
)
static member GetCurrentUnitName :
sessionProfile : SessionProfile *
name : string *
standard : bool -> string
- 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.
StringText representation of the unit or
name if the unit is not found.