This documentation is archived and is not being maintained.

ITextRangeProvider.MoveEndpointByRange Method

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

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

void MoveEndpointByRange(
	TextPatternRangeEndpoint endpoint,
	ITextRangeProvider targetRange,
	TextPatternRangeEndpoint targetEndpoint


Type: System.Windows.Automation.Text.TextPatternRangeEndpoint

The endpoint to move.

Type: System.Windows.Automation.Provider.ITextRangeProvider

Another range from the same text provider.

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 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0