TextBox.GetCharacterIndexFromPoint(Point, Boolean) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 지점에 가장 가까운 문자의 인덱스(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
매개 변수
- snapToText
- Boolean
true 지정된 지점에 문자가 없는 경우 가장 가까운 인덱스 반환 false 지정된 지점에 문자가 없으면 -1 반환합니다.
반품
지정된 지점에 가장 가까운 문자의 인덱스이거나 유효한 인덱스가 없는 경우 -1.