FormatOptions.CanSuppressLeadingZeros
Description:
Checks whether leading zeros can be suppressed for a given display unit.
Checks whether leading zeros can be suppressed for a given display unit.
Overloads (2):
CanSuppressLeadingZeros(DisplayUnitType)
public static bool CanSuppressLeadingZeros(
DisplayUnitType displayUnit
)
-
displayUnitThe display unit.
Return Value
bool
True if leading 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