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: 24.0.0.0 (24.0.0.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

SystemObject
  Autodesk.Revit.DBTextRange

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 →