語言

Decorator.GetVisualChild(Int32) 方法

定義

取得指定Visual位置的子index元素。

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

子元素的索引位置。

傳回

子元素位於指定 index 位置。

例外狀況

index 大於視覺子元素的數量。

備註

由於 Child 只能等於 0 或 1,指定 index 大於 1 或小於 0 的位置會得到 ArgumentOutOfRangeException。

適用於