Help Center

CTextDocument2.RangeFromPointmethod

Retrieves a range for the content at or nearest to the specified point on the screen.

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 RangeFromPoint (BYVAL x AS LONG, BYVAL y AS LONG) AS ITextRange PTR

Parameters

NameDescription
xThe horizontal coordinate of the specified point, in screen coordinates.
yThe vertical coordinate of the specified point, in screen coordinates.

Return value

Pointer to a ITextRange interface that corresponds to the specified point.

Description

Retrieves a range for the content at or nearest to the specified point on the screen.

Reference