The TextRange type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| TextRange()()()() |
Initializes an empty instance of the TextRange class.
| |
| TextRange(TextPointer, TextPointer) |
Initializes a new instance of the TextRange class.
|
Methods
| Name | Description | |
|---|---|---|
| Clone |
Creates a copy of the current TextRange object.
| |
| Contains |
Checks whether a position (specified by a TextPointer) is located within the current range.
| |
| ContainsPage |
Checks whether specified page is located within the current range.
| |
| Equals | (Overrides Object..::..Equals(Object).) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode |
Serves as a hash function for a particular type.
(Overrides Object..::..GetHashCode()()()().) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
Operators
| Name | Description | |
|---|---|---|
| Equality |
Implements the operator ==.
| |
| Inequality |
Implements the operator !=.
|
Properties
| Name | Description | |
|---|---|---|
| End |
Get the position that marks the end of the text range.
| |
| IsEmpty |
Gets a value indicating whether the text range is empty.
| |
| Max |
Gets the larger of the start and end point.
| |
| Min |
Gets the smaller of the start and end point.
| |
| Start |
Gets the position that marks the beginning of the text range.
|