Revit 2026 API
Text |
Constructs a TextRange with input start and length.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public TextRange( int start, int length )
Public Sub New ( start As Integer, length As Integer )
public: TextRange( int start, int length )
new : start : int * length : int -> TextRange
Parameters
- start Int32
- length Int32

Exception | Condition |
---|---|
ArgumentOutOfRangeException | The given value for start is negative. -or- The given value for length is negative. |

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