ITextRangeProvider.Clone 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. ]

Returns a new ITextRangeProvider that is identical to the original ITextRangeProvider and that inherits all the properties of the original.

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

Syntax

Function Clone As ITextRangeProvider
ITextRangeProvider Clone()

Return Value

Type: System.Windows.Automation.Provider..::.ITextRangeProvider
The new text range. This method never returns nullNothingnullptra null reference (Nothing in Visual Basic).

Remarks

The new range can be manipulated independently of the original.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Platforms

Windows Phone

See Also

Reference

ITextRangeProvider Interface

System.Windows.Automation.Provider Namespace