CTextRange2.GetDuplicatemethod
Gets a duplicate of this range object.
Syntax
FUNCTION GetDuplicate () AS ITextRange2 PTR
Return value
The duplicate of the range.
Description
Gets a duplicate of this range object.
Example
DIM pRange2 AS CTextRange2 = pRichEdit.Range2(3, 8) DIM pRangeDup AS CTextRange2 = pRange2.GetDuplicate DIM dwsText AS DWSTRING = pRangeDup.GetText
Reference
- Defined in AfxNova/CTextRange2.inc:221
- Documented in Windows/WIndows Controls/RichEdit/CTextRange2 Class.md
- Topic: CTextRange2 Class