Decorator.GetVisualChild(Int32) Metoda

Definicja

Pobiera element podrzędny Visual w określonej index pozycji.

protected:
 override System::Windows::Media::Visual ^ GetVisualChild(int index);
protected override System.Windows.Media.Visual GetVisualChild (int index);
override this.GetVisualChild : int -> System.Windows.Media.Visual
Protected Overrides Function GetVisualChild (index As Integer) As Visual

Parametry

index
Int32

Pozycja indeksu elementu podrzędnego.

Zwraca

Visual

Element podrzędny w określonej index pozycji.

Wyjątki

index jest większa niż liczba elementów podrzędnych wizualizacji.

Uwagi

Ponieważ Child wartość może być równa tylko 0 lub 1, określenie pozycji większej index niż 1 lub mniejsza niż 0 powoduje wyświetlenie wartości ArgumentOutOfRangeException.

Dotyczy