Spread WinForms 15
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / GcTextBox Class / GetCharFromPosition Method
The location from which to seek the nearest character


In This Topic
GetCharFromPosition Method
In This Topic
Retrieves the character that is closest to the specified location within the control.
Syntax
'Declaration
 
Public Overridable Function GetCharFromPosition( _
   ByVal point As Point _
) As Char
 
'Usage
 
Dim instance As GcTextBox
Dim point As Point
Dim value As Char
 
value = instance.GetCharFromPosition(point)

Parameters

point
The location from which to seek the nearest character

Return Value

The character at the specified location
Remarks
If the location specified in the point parameter is outside the client area of the control, the character '\0'is returned. You can use this method to determine which characters are located near a specific point within the control. You can then use this value to perform operations on the text at that location.
See Also