Decorator.GetVisualChild(Int32) 方法

定義

取得特定 index 位置的子 Visual 項目。

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

參數

index
Int32

子項目的索引位置。

傳回

Visual

特定 index 位置的子項目。

例外狀況

index 大於視覺子項目的數目。

備註

因為 Child 只能等於 0 或 1,所以指定 index 大於 1 或小於 0 的位置會導致 ArgumentOutOfRangeException

適用於