MaskedTextBox.GetCharIndexFromPosition(Point) MaskedTextBox.GetCharIndexFromPosition(Point) MaskedTextBox.GetCharIndexFromPosition(Point) MaskedTextBox.GetCharIndexFromPosition(Point) Method

定義

指定位置に最も近い文字のインデックスを取得します。Retrieves the index of the character nearest to the specified location.

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 Point Point Point

検索する位置。The location to search.

戻り値

指定した位置の 0 から始まる文字インデックス。The zero-based character index at the specified location.

適用対象

こちらもご覧ください