RichTextBox.GetPositionFromCharIndex(Int32) 메서드

정의

컨트롤 내에서 지정된 문자 인덱스의 위치를 검색합니다.

public:
 System::Drawing::Point GetPositionFromCharIndex(int index);
public:
 override System::Drawing::Point GetPositionFromCharIndex(int index);
public System.Drawing.Point GetPositionFromCharIndex (int index);
public override System.Drawing.Point GetPositionFromCharIndex (int index);
member this.GetPositionFromCharIndex : int -> System.Drawing.Point
override this.GetPositionFromCharIndex : int -> System.Drawing.Point
Public Function GetPositionFromCharIndex (index As Integer) As Point
Public Overrides Function GetPositionFromCharIndex (index As Integer) As Point

매개 변수

index
Int32

위치를 검색할 문자의 인덱스입니다.

반환

Point

지정된 문자의 위치입니다.

설명

이 메서드를 사용하면 컨트롤에서 특정 문자 인덱스가 있는 위치를 확인할 수 있습니다. 이 메서드는 바로 가기 메뉴 항목을 표시하거나 컨트롤의 단어에 대한 도움말 정보를 표시하는 등의 작업에 사용할 수 있습니다. 예를 들어 사용자가 컨트롤에서 단어를 마우스 오른쪽 단추로 클릭할 때 사용자에게 옵션 메뉴를 표시하려는 경우 이 메서드를 사용하여 컨트롤을 제대로 표시 ContextMenu 할 단어의 위치를 결정할 수 있습니다.

적용 대상

추가 정보