TextPointer.GetAdjacentElement(LogicalDirection) Metod

Definition

Returnerar det eventuella elementet som kanter den aktuella TextPointer i den angivna logiska riktningen.

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

Parametrar

direction
LogicalDirection

Ett av de LogicalDirection värden som anger den logiska riktning som du vill söka efter ett intilliggande element i.

Returer

Det intilliggande elementet i angivet direction, eller null om det inte finns något intilliggande element.

Kommentarer

Det returnerade elementet är vanligtvis en TextElement. En UIElement kan returneras när TextPointer anger en position inuti ett BlockUIContainer element eller ett InlineUIContainer element.

Gäller för

Se även