IUIAutomationTextRange::Clone Method
Retrieves a new IUIAutomationTextRange identical to the original and inheriting all properties of the original.
Syntax
HRESULT Clone( IUIAutomationTextRange **clonedRange );
Parameters
- clonedRange
[out, retval] The address of a variable that receives a pointer to the IUIAutomationTextRange interface of the new text range.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
The new range can be manipulated independently of the original.