This documentation is archived and is not being maintained.
TextPatternRange Class
Visual Studio 2010
Represents a span of continuous text in a TextPattern container.
Assembly: UIAutomationClient (in UIAutomationClient.dll)
The TextPatternRange 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 | Retrieves a new TextPatternRange identical to the original TextPatternRange and inheriting all properties of the original. |
![]() | 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. |
![]() | CompareEndpoints | Returns an Int32 indicating whether two text ranges have identical endpoints. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | ExpandToEnclosingUnit | Expands the text range to the specified TextUnit. |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | FindAttribute | Returns a text range subset that has the specified attribute value. |
![]() | FindText | Returns a text range subset that contains the specified text. |
![]() | GetAttributeValue | Returns the value of the specified attribute across the entire 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 embedded objects that fall within the text range. |
![]() | GetEnclosingElement | Returns the innermost AutomationElement that encloses the text range. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetText | Returns the plain text of the text range. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | 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 TextUnits within the document range. |
![]() | 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. |
![]() | ScrollIntoView | Causes the text control to scroll vertically until the text range is visible in the viewport. |
![]() | Select | Highlights text in the text control corresponding to the text range Start and End endpoints. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
A TextPatternRange can represent an insertion point, a subset, or all of the text in a TextPattern container.
A TextPatternRange will become invalid if one of the following occurs: the text in the TextPattern container changes because of some user activity, or the SetValue method of ValuePattern is used to programmatically change the value of the text in the TextPattern container.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
