ITextRangeProvider::Clone Method
Returns a new ITextRangeProvider identical to the original ITextRangeProvider and inheriting all properties of the original.
Syntax
HRESULT Clone( ITextRangeProvider **pRetVal );
Parameters
- pRetVal
[out, retval] The address of a variable that receives a pointer to the ITextRangeProvider interface of a copy of the text range. A null reference (Nothing in Microsoft Visual Basic .NET) is never returned. This parameter is passed uninitialized.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
The new range can be manipulated independently from the original.
See Also