Sdílet prostřednictvím


TextPointer.GetAdjacentElement(LogicalDirection) Metoda

Definice

Vrátí prvek, pokud existuje, že ohraničení aktuálního proudu TextPointer v zadaném logickém směru.

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

Parametry

direction
LogicalDirection

Jedna z LogicalDirection hodnot, která určuje logický směr, ve kterém se má hledat sousední prvek.

Návraty

DependencyObject

Sousední prvek v zadaném directionprvku nebo null pokud neexistuje žádný sousední prvek.

Poznámky

Vrácený prvek je obvykle TextElement. A UIElement lze vrátit, TextPointer když označuje pozici uvnitř elementu BlockUIContainer nebo elementu InlineUIContainer .

Platí pro

Viz také