LabelUtils.GetLabelFor
Description:
Gets the user-visible name for a UnitSymbolType.
Gets the user-visible name for a UnitSymbolType.
Remarks:
The name is obtained in the current Revit language.
The name is obtained in the current Revit language.
Overloads (12):
GetLabelFor(UnitSymbolType)
[ObsoleteAttribute("This method is deprecated in Revit 2021 and may be removed in a future version of Revit. Please use the `GetLabelForSymbol(ForgeTypeId)` method instead.")]
public static string GetLabelFor(
UnitSymbolType unitSymbolType
)
-
unitSymbolTypeThe UnitSymbolType to get the user-visible name.
Return Value
string
-
Symbol must have a definition. UST_NONE and UST_CUSTOM are not allowed.
-
A value passed for an enumeration argument is not a member of that enumeration