Help Center

CRichEditCtx.RangeFromPointmethod

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

Windowsmethoddocumented

Syntax

FUNCTION RangeFromPoint (BYVAL x AS LONG, BYVAL y AS LONG, BYVAL nType AS LONG) AS ITextRange2 PTR

Parameters

NameDescription
xThe horizontal coordinate of the specified point, in screen coordinates.
yThe vertical coordinate of the specified point, in screen coordinates.
nTypeThe alignment type of the specified point. For a list of valid values, see ITextRange.GetPoint.

Return value

The text range that corresponds to the specified point.

Description

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

Reference

  • Defined in AfxNova/CRichEditCtx.inc:4453
  • Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
  • Topic: CRichEditCtx Class