TextPointer.GetAdjacentElement(LogicalDirection) Metoda

Definicja

Zwraca element , jeśli istnieje, który obramuje bieżące TextPointer w określonym kierunku logicznym.

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

LogicalDirection Jedna z wartości określających kierunek logiczny, w którym należy wyszukać sąsiedni element.

Zwraca

Sąsiedni element w określonym directionelemecie , lub null jeśli nie istnieje żaden sąsiedni element.

Uwagi

Zwracany element jest zazwyczaj elementem TextElement. Element UIElement może być zwracany, gdy TextPointer element wskazuje pozycję wewnątrz BlockUIContainer elementu lub InlineUIContainer elementu.

Dotyczy

Zobacz też