MoveEndpointByRange Method

ITextRangeProvider.MoveEndpointByRange Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

Namespace:  System.Windows.Automation.Provider
Assembly:  System.Windows (in System.Windows.dll)

'Declaration
Sub MoveEndpointByRange ( _
	endpoint As TextPatternRangeEndpoint, _
	targetRange As ITextRangeProvider, _
	targetEndpoint As TextPatternRangeEndpoint _
)

Parameters

endpoint
Type: System.Windows.Automation.Text.TextPatternRangeEndpoint
The endpoint to move.
targetRange
Type: System.Windows.Automation.Provider.ITextRangeProvider
Another range from the same text provider.
targetEndpoint
Type: System.Windows.Automation.Text.TextPatternRangeEndpoint
An endpoint on the other range.

If the endpoint being moved crosses the other endpoint of the same text range then that other endpoint is moved also, resulting in a degenerate range and ensuring the correct ordering of the endpoints (that is, Start is always less than or equal to End).

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft