FormatOptions Members

The FormatOptions type exposes the following members.

Constructors

  NameDescription
Public methodFormatOptions()()()()
Creates a new FormatOptions object that represents default formatting.
Public methodFormatOptions(DisplayUnitType)
Creates a new FormatOptions object that represents custom formatting.
Public methodFormatOptions(FormatOptions)
Creates a copy of a FormatOptions object.
Public methodFormatOptions(DisplayUnitType, UnitSymbolType)
Creates a new FormatOptions object that represents custom formatting.
Public methodFormatOptions(DisplayUnitType, Double)
Creates a new FormatOptions object that represents custom formatting.
Public methodFormatOptions(DisplayUnitType, UnitSymbolType, Double)
Creates a new FormatOptions object that represents custom formatting.

Methods

  NameDescription
Public methodCanHaveUnitSymbol()()()()
Checks whether a unit symbol can be specified for the display unit in this FormatOptions.
Public methodStatic memberCanHaveUnitSymbol(DisplayUnitType)
Checks whether a unit symbol can be specified for a given display unit.
Public methodCanSuppressLeadingZeros()()()()
Checks whether leading zeros can be suppressed for the display unit in this FormatOptions.
Public methodStatic memberCanSuppressLeadingZeros(DisplayUnitType)
Checks whether leading zeros can be suppressed for a given display unit.
Public methodCanSuppressSpaces()()()()
Checks whether spaces can be suppressed for the display unit in this FormatOptions.
Public methodStatic memberCanSuppressSpaces(DisplayUnitType)
Checks whether spaces can be suppressed for a given display unit.
Public methodCanSuppressTrailingZeros()()()()
Checks whether trailing zeros can be suppressed for the display unit in this FormatOptions.
Public methodStatic memberCanSuppressTrailingZeros(DisplayUnitType)
Checks whether trailing zeros can be suppressed for a given display unit.
Public methodCanUsePlusPrefix()()()()
Checks whether a plus prefix can be displayed for the display unit in this FormatOptions.
Public methodStatic memberCanUsePlusPrefix(DisplayUnitType)
Checks whether a plus prefix can be displayed for a given display unit.
Public methodDispose
Releases all resources used by the FormatOptions
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValidUnitSymbols()()()()
Gets all valid unit symbols for the display unit in this FormatOptions.
Public methodStatic memberGetValidUnitSymbols(DisplayUnitType)
Gets all valid unit symbols for a given display unit.
Public methodIsValidAccuracy(Double)
Checks whether an accuracy is valid for the display unit in this FormatOptions.
Public methodStatic memberIsValidAccuracy(DisplayUnitType, Double)
Checks whether an accuracy is valid for a given display unit.
Public methodIsValidForUnitType
Checks whether this FormatOptions is valid for a given unit type.
Public methodIsValidUnitSymbol(UnitSymbolType)
Checks whether a unit symbol is valid for the display unit in this FormatOptions.
Public methodStatic memberIsValidUnitSymbol(DisplayUnitType, UnitSymbolType)
Checks whether a unit symbol is valid for a given display unit.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties

  NameDescription
Public propertyAccuracy
The accuracy to which values will be rounded.
Public propertyDisplayUnits
The units and display format used to format values.
Public propertyIsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Public propertyRoundingMethod
The method used to round values: round to nearest, round up, or round down.
Public propertySuppressLeadingZeros
Indicates if leading zeros should be suppressed in feet and fractional inches.
Public propertySuppressSpaces
Indicates if spaces around the dash should be suppressed in feet and fractional inches.
Public propertySuppressTrailingZeros
Indicates if trailing zeros after the decimal point should be suppressed.
Public propertyUnitSymbol
The unit symbol that should be displayed to indicate the units of the value.
Public propertyUseDefault
Indicates whether default or custom formatting should be used.
Public propertyUseDigitGrouping
Indicates if digit grouping symbols should be displayed.
Public propertyUsePlusPrefix
Indicates if a plus sign prefix should be displayed for positive and zero values.

See Also