TextRange Class


An object that is used to identify a range of characters in a FormattedText .

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

Syntax

C#
public class TextRange : IDisposable
Visual Basic
Public Class TextRange _
	Implements IDisposable
Visual C++
public ref class TextRange : IDisposable

Remarks

A TextRange consists of a start, which is a zero-based index into the text, and a length, which is the number of characters in the range. The length can be zero.

Inheritance Hierarchy

System Object
Autodesk.Revit.DB TextRange

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 →