AdornerLayer.GetVisualChild(Int32) Method

Definition

获取指定 index 位置处的 Visual 子级。Gets a Visual child at the specified index position.

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

Parameters

index
Int32

所需 Visual 子级的索引位置。The index position of the wanted Visual child.

Returns

Visual

父元素 Visual 的一个 AdornerLayer 子项。A Visual child of the parent AdornerLayer element.

Remarks

派生类必须实现此方法以支持 Visual 子级。A derived class must implement this method to support Visual children. 方法必须返回指定索引处的子级。The method must return the child at the specified index. 索引必须介于 0 和(VisualChildrenCount-1)之间。The index must be between 0 and (VisualChildrenCount-1).

Applies to

See also