Grid.GetVisualChild(Int32) 方法

定义

获取指定 index 位置处的子 VisualGets the child Visual 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

参数

index
Int32

所需 Visual 的从零开始的索引位置。The zero-based index position of the desired Visual.

返回

Visual

指定 index 位置的子 VisualThe child Visual at the specified index position.

注解

调用此方法时,不能修改可视化树。The visual tree must not be modified while this method is called.

适用于