TextRange Constructor (Int32, Int32)


Text Range(Int 32, Int 32) Constructor

Constructs a TextRange with input start and length.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public TextRange(
	int start,
	int length
)

Parameters

start Int32
length Int32
Exceptions
Exception Condition
ArgumentOutOfRangeException The given value for start is negative. -or- The given value for length is negative.
Remarks
The input value for start as well as length should not be negative.
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →