Wimark.Controls Class Library  

RichTextBox.GetCharFromPosition Method

Gets the character that is closest to the specified location within the control.

[Visual Basic]
Public Function GetCharFromPosition( _
   ByVal pt As Point _
) As Char 
[C#]
public char GetCharFromPosition( 
   Point pt 
);
[C++]
public: __wchar_t GetCharFromPosition( 
   Point pt 
);

Parameters

pt
The location from which to seek the nearest character.

Return Value

The character at the specified location.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family

See Also

RichTextBox Class | RichTextBox Members | Wimark.Controls Namespace