ITextRangeProvider.MoveEndpointByRange Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

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

Parameters

Remarks

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).

Version Information

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.