FormatOptions.CanSuppressTrailingZeros
Description:
Checks whether trailing zeros can be suppressed for a given display unit.
Checks whether trailing zeros can be suppressed for a given display unit.
Overloads (3):
CanSuppressTrailingZeros(DisplayUnitType)
[ObsoleteAttribute("This method is deprecated in Revit 2021 and may be removed in a future version of Revit. Please use the `CanSuppressTrailingZeros(ForgeTypeId)` overload instead.")]
public static bool CanSuppressTrailingZeros(
DisplayUnitType displayUnit
)
-
displayUnitThe display unit.
Return Value
bool
True if trailing zeros can be suppressed, 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