RichTextBox.GetCharFromPosition(Point) RichTextBox.GetCharFromPosition(Point) RichTextBox.GetCharFromPosition(Point) RichTextBox.GetCharFromPosition(Point) Method

定义

检索距离所指定位置最近的字符。Retrieves the character nearest to the specified location.

public:
 char GetCharFromPosition(System::Drawing::Point pt);
public char GetCharFromPosition (System.Drawing.Point pt);
member this.GetCharFromPosition : System.Drawing.Point -> char
Public Function GetCharFromPosition (pt As Point) As Char

参数

pt
Point Point Point Point

要搜索的位置。The location to search.

返回

位于指定位置的字符。The character at the specified location.

适用于