TextRange Constructor (Int32, Int32)


Constructs a TextRange with input start and length.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2017

Syntax

C#
public TextRange(
	int start,
	int length
)
Visual Basic
Public Sub New ( _
	start As Integer, _
	length As Integer _
)
Visual C++
public:
TextRange(
	int start, 
	int length
)

Parameters

start
Type: SystemInt32
length
Type: SystemInt32

Remarks

The input value for start as well as length should not be negative.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentOutOfRangeException The given value for start is negative. -or- The given value for length is negative.

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 →