Help Center

CTextDocument2.RangeFromPoint2method

Retrieves the degenerate range at (or nearest to) a particular 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 RangeFromPoint2 (BYVAL x AS LONG, BYVAL y AS LONG, BYVAL nType AS LONG) AS ITextRange2 PTR

Parameters

NameDescription
xThe x-coordinate of a point, in screen coordinates.
yThe y-coordinate of a point, in screen coordinates.
nTypeThe alignment type of the specified point. For a list of valid values, see the GetPoint method of the ITextRange interface.

Description

Retrieves the degenerate range at (or nearest to) a particular point on the screen.

Reference