CRichEditCtx.RangeFromPointmethod
Retrieves a range for the content at or nearest to the specified point on the screen.
Syntax
FUNCTION RangeFromPoint (BYVAL x AS LONG, BYVAL y AS LONG, BYVAL nType AS LONG) AS ITextRange2 PTR
Parameters
| Name | Description | |
|---|---|---|
x | The horizontal coordinate of the specified point, in screen coordinates. | |
y | The vertical coordinate of the specified point, in screen coordinates. | |
nType | The 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