| TextSelection Methods | 
The TextSelection type exposes the following members.
 Methods
Methods
 
| Name | Description | |
|---|---|---|
|   | Equals | 
 Determines whether the specified object is equal to the current object.
(Inherited from
 Object
.) | 
|   | Finalize | 
 Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from
 Object
.) | 
|   | GetAsOneRange | 
 Gets as one range.
 | 
|   | GetAsOneRange(Boolean) | 
 Gets as one range.
 | 
|   | GetAsRange | 
 Gets as range.more than one paragraph, every paragraph to one text range.
 | 
|   | GetAsRange(Boolean) | 
 Returns an array of TextRange objects representing the selected text in the RichTextBox control.
If isCopyFormat is true, the format of the selected text is also copied to the clipboard.
 | 
|   | GetEnumerator | 
 Returns an enumerator that iterates through a collection.
 | 
|   | GetHashCode | 
 Serves as the default hash function.
(Inherited from
 Object
.) | 
|   | GetRanges | 
 Gets the ranges in one paragraph.
 | 
|   | 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
.) | 
 See Also
See Also