語言

MaskedTextBox.GetCharIndexFromPosition(Point) 方法

定義

取得最接近指定位置的字元索引。

public:
 override int GetCharIndexFromPosition(System::Drawing::Point pt);
public override int GetCharIndexFromPosition(System.Drawing.Point pt);
override this.GetCharIndexFromPosition : System.Drawing.Point -> int
Public Overrides Function GetCharIndexFromPosition (pt As Point) As Integer

參數

pt
Point

搜尋地點。

傳回

在指定位置的零為基礎字元索引。

適用於

另請參閱