FormatOptions.CanHaveUnitSymbol
Description:
Checks whether a unit symbol can be specified for a given display unit.
Checks whether a unit symbol can be specified for a given display unit.
Overloads (2):
CanHaveUnitSymbol(DisplayUnitType)
[ObsoleteAttribute("This method is deprecated in Revit 2021 and may be removed in a future version of Revit. Please use the `CanHaveSymbol(ForgeTypeId)` method instead.")]
public static bool CanHaveUnitSymbol(
DisplayUnitType displayUnit
)
-
displayUnitThe display unit.
Return Value
bool
True if a unit symbol can be specified, false otherwise.
-
displayUnit is an invalid display unit. See UnitUtils.IsValidDisplayUnit(DisplayUnitType) and UnitUtils.GetValidDisplayUnits().
-
A value passed for an enumeration argument is not a member of that enumeration