TextPointer.GetAdjacentElement(LogicalDirection) 메서드

정의

지정된 논리 방향으로 현재 TextPointer에 인접한 요소가 있으면 반환합니다.

public:
 System::Windows::DependencyObject ^ GetAdjacentElement(System::Windows::Documents::LogicalDirection direction);
public System.Windows.DependencyObject GetAdjacentElement (System.Windows.Documents.LogicalDirection direction);
member this.GetAdjacentElement : System.Windows.Documents.LogicalDirection -> System.Windows.DependencyObject
Public Function GetAdjacentElement (direction As LogicalDirection) As DependencyObject

매개 변수

direction
LogicalDirection

인접한 요소를 검색할 논리 방향을 지정하는 LogicalDirection 값 중 하나입니다.

반환

DependencyObject

지정된 direction으로 인접한 요소입니다. 인접한 요소가 없는 경우 null입니다.

설명

반환 된 요소는 일반적으로 TextElement합니다. A UIElement 반환 될 수는 TextPointer 내부 위치를 나타내는 BlockUIContainer 요소 또는 InlineUIContainer 요소입니다.

적용 대상

추가 정보