This documentation is archived and is not being maintained.

CRichEditCtrl::GetTextRange 

Gets the specified range of characters.


int GetTextRange(
   int nFirst,
   int nLast,
   CString& refString 
) const;

Parameters

nFirst

The character position index immediately preceding the first character in the range.

nLast

The character position immediately following the last character in the range.

refString

A reference to a CString object that will receive the text.

The number of characters copied, not including the terminating null character.

For more information, see EM_GETTEXTRANGE in the Platform SDK.

GetTextRange supports the Rich Edit 2.0 functionality. See About Rich Edit Controls in the Platform SDK for more information.

Show: