TextPatternRange Class
Represents a span of continuous text in a TextPattern container.
Assembly: UIAutomationClient (in UIAutomationClient.dll)
| Name | Description | |
|---|---|---|
![]() | TextPattern | Gets the TextPattern associated with the text range. |
| 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(TextPatternRange) | |
![]() | CompareEndpoints(TextPatternRangeEndpoint, TextPatternRange, TextPatternRangeEndpoint) | 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(TextUnit) | 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(AutomationTextAttribute, Object, Boolean) | Returns a text range subset that has the specified attribute value. |
![]() | FindText(String, Boolean, Boolean) | Returns a text range subset that contains the specified text. |
![]() | GetAttributeValue(AutomationTextAttribute) | 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 the default hash function. (Inherited from Object.) |
![]() | GetText(Int32) | Returns the plain text of the text range. |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | Move(TextUnit, Int32) | Moves the text range the specified number of text units. |
![]() | MoveEndpointByRange(TextPatternRangeEndpoint, TextPatternRange, TextPatternRangeEndpoint) | Moves one endpoint of a text range to the specified endpoint of a second text range. |
![]() | MoveEndpointByUnit(TextPatternRangeEndpoint, TextUnit, Int32) | Moves one endpoint of the text range the specified number of TextUnits within the document range. |
![]() | RemoveFromSelection() | |
![]() | ScrollIntoView(Boolean) | Causes the text control to scroll vertically until the text range is visible in the viewport. |
![]() | Select() | |
![]() | 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.
Available since 3.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


