Skip to main content
ITextRange2::GetDuplicate2 method

Gets a duplicate of a range object.

Syntax


HRESULT GetDuplicate2(
  [out, retval]  ITextRange2 **ppRange
);

Parameters

ppRange [out, retval]

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

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Tom.h

DLL

Msftedit.dll

See also

ITextRange2