DimensionEqualityLabelFormatting Constructor


Constructs a new instance of a DimensionEqualityLabelFormatting object with specified settings.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.0.0)
Since: 2017 Subscription Update

Syntax

C#
public DimensionEqualityLabelFormatting(
	int leadingSpaces,
	string prefix,
	LabelType labelType,
	string suffix,
	FormatOptions formatOptions
)
Visual Basic
Public Sub New ( _
	leadingSpaces As Integer, _
	prefix As String, _
	labelType As LabelType, _
	suffix As String, _
	formatOptions As FormatOptions _
)
Visual C++
public:
DimensionEqualityLabelFormatting(
	int leadingSpaces, 
	String^ prefix, 
	LabelType labelType, 
	String^ suffix, 
	FormatOptions^ formatOptions
)

Parameters

leadingSpaces
Type: System Int32
The number of spaces to include before the parameter value.
prefix
Type: System String
The prefix to include before the parameter value.
labelType
Type: Autodesk.Revit.DB LabelType
The parameter value to be shown.
suffix
Type: System String
The suffix to include after the parameter value.
formatOptions
Type: Autodesk.Revit.DB FormatOptions
The format options to use for the parameter value.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was null
Autodesk.Revit.Exceptions ArgumentOutOfRangeException A value passed for an enumeration argument is not a member of that enumeration

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →