TextBox.GetCharacterIndexFromPoint(Point, Boolean) 메서드

정의

지정된 지점에 가장 가까운 문자 인덱스(0부터 시작)를 반환합니다.

public:
 int GetCharacterIndexFromPoint(System::Windows::Point point, bool snapToText);
public int GetCharacterIndexFromPoint (System.Windows.Point point, bool snapToText);
member this.GetCharacterIndexFromPoint : System.Windows.Point * bool -> int
Public Function GetCharacterIndexFromPoint (point As Point, snapToText As Boolean) As Integer

매개 변수

point
Point

TextBox 좌표 공간에서 인덱스를 반환할 지점입니다.

snapToText
Boolean

true이면 지정된 지점에 문자가 없는 경우 가장 가까운 인덱스를 반환하고, false이면 지정된 지점에 문자가 없는 경우 -1을 반환합니다.

반환

Int32

지정된 지점에 가장 가까운 문자 인덱스이거나, 유효한 인덱스를 찾을 수 없으면 -1입니다.

적용 대상

추가 정보