ITextRange2::GetDuplicate2 method (tom.h)
Gets a duplicate of a range object.
Syntax
HRESULT GetDuplicate2(
[out, retval] ITextRange2 **ppRange
);
Parameters
[out, retval] ppRange
Type: ITextRange2**
The duplicate range.
Return value
Type: HRESULT
If the method succeeds, it returns NOERROR. Otherwise, it returns an HRESULT error code.
Remarks
If this range is an ITextSelection2 object, the duplicate returned is an ITextRange2 object. See the ITextRange::FindText method for more information.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | tom.h |
DLL | Msftedit.dll |