Represents a range of text between two TextPointer positions.
Inheritance Hierarchy
FirstFloor.DocumentsTextRange
FirstFloor.DocumentsTextSelection
Namespace: FirstFloor.Documents
Assembly: FirstFloor.Documents (in FirstFloor.Documents.dll) Version: 2.5.0.0 (2.5.11.0)
Syntax
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.
|
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.
|
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 ObjectEquals(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 ObjectGetHashCode.) |
![]() | 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 !=.
|
See Also