ITextRangeProvider Methods
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
The ITextRangeProvider type exposes the following members.
| Name | Description | |
|---|---|---|
|
AddToSelection | Adds to the collection of highlighted text in a text container that supports multiple disjoint selections. |
|
Clone | Returns a new ITextRangeProvider that is identical to the original ITextRangeProvider and that inherits all the properties of the original. |
|
Compare | Returns a value that indicates whether the span (the Start endpoint through the End endpoint) of a text range is the same as another text range. |
|
CompareEndpoints | Returns a value that specifies whether two text ranges have identical endpoints. |
|
ExpandToEnclosingUnit | Expands the text range to the specified text unit. |
|
FindAttribute | Returns a text range subset that has the specified attribute ID and attribute value. |
|
FindText | Returns a text range subset that contains the specified text. |
|
GetAttributeValue | Retrieves the value of the specified attribute ID across the text range. |
|
GetBoundingRectangles | Retrieves a collection of bounding rectangles for each fully or partially visible line of text in a text range. |
|
GetChildren | Retrieves a collection of all the embedded objects that exist within the text range. |
|
GetEnclosingElement | Returns the innermost element that encloses the text range. |
|
GetText | Retrieves the plain text of the range. |
|
Move | Moves the text range the specified number of text units. |
|
MoveEndpointByRange | Moves one endpoint of a text range to the specified endpoint of a second text range. |
|
MoveEndpointByUnit | Moves one endpoint of the text range the specified number of text units within the document range. |
|
RemoveFromSelection | From the collection of highlighted text in a text container that supports multiple disjoint selections, removes a highlighted section of text that corresponds to the caller's Start and End endpoints. |
|
ScrollIntoView | Causes the text control to scroll vertically until the text range is visible in the viewport. |
|
Select | Highlights text in the text control that corresponds to the Start and End endpoints of the text range. |
Show: