GetParameterFormatOptions Method

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: 2015.0.0.0 (2015.0.0.0)
Since: 2014


public FormatOptions GetParameterFormatOptions(
	ElementId parameterId
Visual Basic
Public Function GetParameterFormatOptions ( _
	parameterId As ElementId _
) As FormatOptions
Visual C++
FormatOptions^ GetParameterFormatOptions(
	ElementId^ parameterId


Type: Autodesk.Revit.DB ElementId
Id of parameter for which FormatOptions will be returned.

Return Value

Format 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.


Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was NULL

See Also