RichEdit.getCharFromPosition

Overview | Methods | This Package | All Packages

RichEdit.getCharFromPosition

Retrieves the character closest to the specified point.

Syntax

public char getCharFromPosition( Point pt )

Parameters

pt

A Point object that specifies the location from which to seek the nearest character.

Return Value

Returns the character closest to the specified point. If the specified point lies outside the area of the control, the last character in the control is returned.