FormatOptions.SuppressLeadingZeros Property

Indicates if leading zeros should be suppressed in feet and fractional inches.


Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)

Syntax

C#

public bool SuppressLeadingZeros { get; set; }

Property Value

Boolean
True if leading zeros should be suppressed, false otherwise. The default is false.

Exceptions

ExceptionCondition
InvalidOperationException UseDefault is true in this FormatOptions. -or- When setting this property: SuppressLeadingZeros was set to true but leading zeros cannot be suppressed for the display unit in this FormatOptions.

Remarks

This property is applicable to display units related to feet and fractional inches:

When SuppressLeadingZeros is true:

See Also

Reference

FormatOptions Class
Autodesk.Revit.DB Namespace