TextRange
Description:
An object that is used to identify a range of characters in a .
An object that is used to identify a range of characters in a .
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.
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
System.Object
Autodesk.Revit.DB.TextRange
public class TextRange : IDisposable
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| TextRange() | None | Constructs a TextRange with default values for start and length. | |
| TextRange(TextRange) | None | Constructs a copy of the input TextRange object. | |
| TextRange(Int32, Int32) | None | Constructs a TextRange with input start and length. |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Dispose() | None | Releases all resources used by the TextRange | |
| Equals | None | Determines whether the specified object is equal to the current object. (Inherited from Object ) | Object |
| GetHashCode | None | Serves as the default hash function. (Inherited from Object ) | Object |
| GetType | None | Gets the Type of the current instance. (Inherited from Object ) | Object |
| ToString | None | Returns a string that represents the current object. (Inherited from Object ) | Object |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| End | int | The index of the first character after the end of the range | |
| IsValidObject | Boolean | Specifies whether the .NET object represents a valid Revit entity. | |
| Length | int | The length of the range. | |
| Start | int | The start index of a range within the FormattedText . |