Share via


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

要搜尋的位置。

傳回

指定位置處的以零為起始的字元索引。

適用於

另請參閱