LabelUtils.GetLabelFor
Description:
Gets the user-visible name for a DisplayUnitType.
Gets the user-visible name for a DisplayUnitType.
Remarks:
The name is obtained in the current Revit language.
The name is obtained in the current Revit language.
Overloads (12):
GetLabelFor(DisplayUnitType)
[ObsoleteAttribute("This method is deprecated in Revit 2021 and may be removed in a future version of Revit. Please use the `GetLabelForUnit(ForgeTypeId)` method instead.")]
public static string GetLabelFor(
DisplayUnitType displayUnitType
)
-
displayUnitTypeThe DisplayUnitType to get the user-visible name.
Return Value
string
-
Cannot find DisplayUnitTypeInfo for the DisplayUnitType.
-
A value passed for an enumeration argument is not a member of that enumeration