AsTextRange Method


Formatted Text As Text Range Method

Returns a TextRange object that represents the entire text.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public TextRange AsTextRange()

Return Value

TextRange
The TextRange object that represents the entire text.
Remarks
This range includes a carriage return character ('\r') that is always present. As a result the range can never be an empty range.
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 →