TextBlock.GetVisualChild(Int32) 方法

定义

返回 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 子级。 此值必须介于 0 和 (VisualChildrenCount 减 1) 之间

返回

Visual指定索引处的子级。

例外

index 不介于 0 和 (VisualChildrenCount 减 1)

注解

此方法重写 FrameworkElement.GetVisualChild

适用于