Help Center

CTextDocument2.Rangemethod

Retrieves a text range object for a specified range of content in 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 Range (BYVAL cpActive AS LONG = 0, BYVAL cpAnchor AS LONG = 0) AS ITextRange PTR

Parameters

NameDescription
cpActiveThe start position of new range. The default value is zero, which represents the start of the document.
cpAnchorThe end position of new range. The default value is zero.

Return value

Pointer to a ITextRange interface to the specified text range.

Description

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

Reference