Export (0) Print
Expand All

TextPatternRange Methods

The TextPatternRange 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 Retrieves a new TextPatternRange identical to the original TextPatternRange and inheriting all properties of the original.
Public method Compare Returns a Boolean value indicating 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 an Int32 indicating whether two text ranges have identical endpoints.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method ExpandToEnclosingUnit Expands the text range to the specified TextUnit.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
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 Returns the value of the specified attribute across the entire 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 AutomationElement that encloses the text range.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetText Returns the plain text of the text range.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
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 TextUnits within the document range.
Public method RemoveFromSelection Removes a highlighted section of text, corresponding to the calling text range Start and End endpoints, from an existing 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.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Show:
© 2014 Microsoft