Help Center

CTextDocument2.Range2method

Retrieves a new text range for the active story of the document.

Windowsmethoddoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

FUNCTION Range2 (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

The new text range.

Description

Retrieves a new text range for the active story of the document.

Reference