DimensionEqualityLabelFormatting Constructor


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

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.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: SystemInt32
The number of spaces to include before the parameter value.
prefix
Type: SystemString
The prefix to include before the parameter value.
labelType
Type: Autodesk.Revit.DBLabelType
The parameter value to be shown.
suffix
Type: SystemString
The suffix to include after the parameter value.
formatOptions
Type: Autodesk.Revit.DBFormatOptions
The format options to use for the parameter value.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null
Autodesk.Revit.ExceptionsArgumentOutOfRangeException 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 →