The FormatOptions type exposes the following members.

Constructors

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

Methods

  NameDescription
Public methodCanHaveSymbol()()()()
Checks whether a symbol can be specified to display the unit in this FormatOptions.
Public methodStatic memberCanHaveSymbol(ForgeTypeId)
Checks whether a symbol can be specified to display a given unit.
Public methodCanHaveUnitSymbol()()()() Obsolete.
Checks whether a unit symbol can be specified for the display unit in this FormatOptions.
Public methodStatic memberCanHaveUnitSymbol(DisplayUnitType) Obsolete.
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) Obsolete.
Checks whether leading zeros can be suppressed for a given display unit.
Public methodStatic memberCanSuppressLeadingZeros(ForgeTypeId)
Checks whether leading zeros can be suppressed for a given unit.
Public methodCanSuppressSpaces()()()()
Checks whether spaces can be suppressed for the display unit in this FormatOptions.
Public methodStatic memberCanSuppressSpaces(DisplayUnitType) Obsolete.
Checks whether spaces can be suppressed for a given display unit.
Public methodStatic memberCanSuppressSpaces(ForgeTypeId)
Checks whether spaces can be suppressed for a given unit.
Public methodCanSuppressTrailingZeros()()()()
Checks whether trailing zeros can be suppressed for the display unit in this FormatOptions.
Public methodStatic memberCanSuppressTrailingZeros(DisplayUnitType) Obsolete.
Checks whether trailing zeros can be suppressed for a given display unit.
Public methodStatic memberCanSuppressTrailingZeros(ForgeTypeId)
Checks whether trailing zeros can be suppressed for a given unit.
Public methodCanUsePlusPrefix()()()()
Checks whether a plus prefix can be displayed for the display unit in this FormatOptions.
Public methodStatic memberCanUsePlusPrefix(DisplayUnitType) Obsolete.
Checks whether a plus prefix can be displayed for a given display unit.
Public methodStatic memberCanUsePlusPrefix(ForgeTypeId)
Checks whether a plus prefix can be displayed for a given 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 methodGetSymbolTypeId
Gets the identifier of the symbol indicating the unit quantifying the value.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUnitTypeId
Gets the identifier of the unit used to quantify values.
Public methodGetValidSymbols()()()()
Gets the identifiers of all valid symbols for the unit in this FormatOptions.
Public methodStatic memberGetValidSymbols(ForgeTypeId)
Gets the identifiers of all valid symbols for a given unit.
Public methodGetValidUnitSymbols()()()() Obsolete.
Gets all valid unit symbols for the display unit in this FormatOptions.
Public methodStatic memberGetValidUnitSymbols(DisplayUnitType) Obsolete.
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) Obsolete.
Checks whether an accuracy is valid for a given display unit.
Public methodStatic memberIsValidAccuracy(ForgeTypeId, Double)
Checks whether an accuracy is valid for a given unit.
Public methodIsValidForSpec
Checks whether this FormatOptions is valid for a given spec.
Public methodIsValidForUnitType Obsolete.
Checks whether this FormatOptions is valid for a given unit type.
Public methodIsValidSymbol(ForgeTypeId)
Checks whether a symbol is valid for the unit in this FormatOptions.
Public methodStatic memberIsValidSymbol(ForgeTypeId, ForgeTypeId)
Checks whether a symbol is valid for a given unit.
Public methodIsValidUnitSymbol(UnitSymbolType) Obsolete.
Checks whether a unit symbol is valid for the display unit in this FormatOptions.
Public methodStatic memberIsValidUnitSymbol(DisplayUnitType, UnitSymbolType) Obsolete.
Checks whether a unit symbol is valid for a given display unit.
Public methodSetSymbolTypeId
Sets the symbol that should be displayed to indicate the unit quantifying the value.
Public methodSetUnitTypeId
Sets the unit used to quantify values.
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 Obsolete.
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 Obsolete.
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