TextPointer.GetTextRunLength(LogicalDirection) 메서드

정의

지정된 방향으로 현재 TextPointer와 텍스트가 아닌 다음 기호 사이의 유니코드 문자 수를 반환합니다.

public:
 int GetTextRunLength(System::Windows::Documents::LogicalDirection direction);
public int GetTextRunLength (System.Windows.Documents.LogicalDirection direction);
member this.GetTextRunLength : System.Windows.Documents.LogicalDirection -> int
Public Function GetTextRunLength (direction As LogicalDirection) As Integer

매개 변수

direction
LogicalDirection

문자 수를 계산할 논리 방향을 지정하는 LogicalDirection 값 중 하나입니다.

반환

Int32

현재 TextPointer와 텍스트가 아닌 다음 기호 사이의 유니코드 문자 수입니다. 인접한 텍스트가 없는 경우 이 숫자는 0일 수 있습니다.

설명

다음 항목은 기호 간주 됩니다.

  • 여는 태그 또는 닫는 태그가 TextElement 요소입니다.

  • A UIElement 에 포함 된 요소를 InlineUIContainer 또는 BlockUIContainer합니다. 즉, 이러한 참고는 UIElement 은 항상 하나만 기호; 모든 추가 콘텐츠 또는 요소에 포함 된 계산는 UIElement 기호로 계산 되지 않습니다.

  • 텍스트 Run 요소 내의 16비트 유니코드 문자입니다.

적용 대상