TextPatternRange Methods

TextPatternRange Methods

 

Namespace:   System.Windows.Automation.Text
Assembly:  UIAutomationClient (in UIAutomationClient.dll)

NameDescription
System_CAPS_pubmethodAddToSelection()

Adds to the collection of highlighted text in a text container that supports multiple, disjoint selections.

System_CAPS_pubmethodClone()

Retrieves a new TextPatternRange identical to the original TextPatternRange and inheriting all properties of the original.

System_CAPS_pubmethodCompare(TextPatternRange)

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.

System_CAPS_pubmethodCompareEndpoints(TextPatternRangeEndpoint, TextPatternRange, TextPatternRangeEndpoint)

Returns an Int32 indicating whether two text ranges have identical endpoints.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodExpandToEnclosingUnit(TextUnit)

Expands the text range to the specified TextUnit.

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodFindAttribute(AutomationTextAttribute, Object, Boolean)

Returns a text range subset that has the specified attribute value.

System_CAPS_pubmethodFindText(String, Boolean, Boolean)

Returns a text range subset that contains the specified text.

System_CAPS_pubmethodGetAttributeValue(AutomationTextAttribute)

Returns the value of the specified attribute across the entire text range.

System_CAPS_pubmethodGetBoundingRectangles()

Retrieves a collection of bounding rectangles for each fully or partially visible line of text in a text range.

System_CAPS_pubmethodGetChildren()

Retrieves a collection of all embedded objects that fall within the text range.

System_CAPS_pubmethodGetEnclosingElement()

Returns the innermost AutomationElement that encloses the text range.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetText(Int32)

Returns the plain text of the text range.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodMove(TextUnit, Int32)

Moves the text range the specified number of text units.

System_CAPS_pubmethodMoveEndpointByRange(TextPatternRangeEndpoint, TextPatternRange, TextPatternRangeEndpoint)

Moves one endpoint of a text range to the specified endpoint of a second text range.

System_CAPS_pubmethodMoveEndpointByUnit(TextPatternRangeEndpoint, TextUnit, Int32)

Moves one endpoint of the text range the specified number of TextUnits within the document range.

System_CAPS_pubmethodRemoveFromSelection()

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.

System_CAPS_pubmethodScrollIntoView(Boolean)

Causes the text control to scroll vertically until the text range is visible in the viewport.

System_CAPS_pubmethodSelect()

Highlights text in the text control corresponding to the text range Start and End endpoints.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

Return to top
Show:
© 2016 Microsoft