Returns a FormatOptions override for the element Parameter, or a default FormatOptions if no override exists.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public FormatOptions GetParameterFormatOptions( ElementId parameterId )
Parameters
- parameterId ElementId
- Id of parameter for which FormatOptions will be returned.
Return Value
FormatOptionsFormat options of element parameter. If the UseDefault property is true, then no formatting overrides have been defined in the element for the specified parameter, and the FormatOptions for the parameter should be obtained from the Unit object, which can be obtained from the Document.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |