Help Center

CRichEditCtx.Rangemethod

Retrieves a text range object for a specified range of content in the active story of the document.

Windowsmethoddocumented

Syntax

FUNCTION Range (BYVAL cpActive AS LONG = 0, BYVAL cpAnchor AS LONG = 0) AS ITextRange2 PTR

Parameters

NameDescription
cpActiveThe active end of the new text range. The default value is 0; that is, the beginning of the story.
cpAnchorThe 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