CRichEditCtx.Rangemethod
Retrieves a text range object for a specified range of content in the active story of the document.
Syntax
FUNCTION Range (BYVAL cpActive AS LONG = 0, BYVAL cpAnchor AS LONG = 0) AS ITextRange2 PTR
Parameters
| Name | Description | |
|---|---|---|
cpActive | The active end of the new text range. The default value is 0; that is, the beginning of the story. | |
cpAnchor | The anchor end of the new text range. The default value is 0. |
Return value
A ITextRange2 pointer to the specified text range.
Description
Retrieves a new text range for the active story of the document.
Reference
- Defined in AfxNova/CRichEditCtx.inc:4443
- Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
- Topic: CRichEditCtx Class