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 반환합니다.

반품

지정된 지점에 가장 가까운 문자의 인덱스이거나 유효한 인덱스가 없는 경우 -1.

적용 대상

추가 정보