Export (0) Print
Expand All

ITextRangeProvider Methods

The ITextRangeProvider type exposes the following members.

  Name Description
Public method AddToSelection Adds to the collection of highlighted text in a text container that supports multiple, disjoint selections.
Public method Clone Returns a new ITextRangeProvider identical to the original ITextRangeProvider and inheriting all properties of the original.
Public method Compare Returns a value that indicates whether the span (the Start endpoint to the End endpoint) of a text range is the same as another text range.
Public method CompareEndpoints Returns a value that specifies whether two text ranges have identical endpoints.
Public method ExpandToEnclosingUnit Expands the text range to the specified text unit.
Public method FindAttribute Returns a text range subset that has the specified attribute value.
Public method FindText Returns a text range subset that contains the specified text.
Public method GetAttributeValue Retrieves the value of the specified attribute across the text range.
Public method GetBoundingRectangles Retrieves a collection of bounding rectangles for each fully or partially visible line of text in a text range.
Public method GetChildren Retrieves a collection of all embedded objects that fall within the text range.
Public method GetEnclosingElement Returns the innermost control that encloses the text range.
Public method GetText Retrieves the plain text of the range.
Public method Move Moves the text range the specified number of text units.
Public method MoveEndpointByRange Moves one endpoint of a text range to the specified endpoint of a second text range.
Public method MoveEndpointByUnit Moves one endpoint of the text range the specified number of text units within the document range.
Public method RemoveFromSelection Removes a highlighted section of text, corresponding to the caller's Start and End endpoints, from the collection of highlighted text in a text container that supports multiple, disjoint selections.
Public method ScrollIntoView Causes the text control to scroll vertically until the text range is visible in the viewport.
Public method Select Highlights text in the text control corresponding to the text range Start and End endpoints.
Top
Show:
© 2014 Microsoft