TextPointer.GetAdjacentElement(LogicalDirection) Metódus

Definíció

A megadott logikai irányban határos TextPointer elemet adja vissza, ha van ilyen.

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

Paraméterek

direction
LogicalDirection

Az egyik LogicalDirection érték, amely meghatározza a szomszédos elem keresésének logikai irányát.

Válaszok

A megadott directionelem szomszédos eleme, vagy null ha nincs szomszédos elem.

Megjegyzések

A visszaadott elem általában egy TextElement. A UIElement függvény akkor adható vissza, ha az TextPointer elemen vagy elemen belüli BlockUIContainer pozíciót InlineUIContainer jelzi.

A következőre érvényes:

Lásd még