Revit 2026 API
Formatted |
Returns a TextRange object that represents the entire text.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public TextRange AsTextRange()
Public Function AsTextRange As TextRange
public: TextRange^ AsTextRange()
member AsTextRange : unit -> TextRange
Return Value
TextRangeThe TextRange object that represents the entire text.

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