Wimark.Controls Class Library  

RichTextBox.GetCharIndexFromPosition Method

Gets the index of the character nearest to the specified location.

[Visual Basic]
Public Function GetCharIndexFromPosition( _
   ByVal pt As Point _
) As Integer 
[C#]
public int GetCharIndexFromPosition( 
   Point pt 
);
[C++]
public: int GetCharIndexFromPosition( 
   Point pt 
);

Parameters

pt
The location to search.

Return Value

The zero-based character index 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