TextBlock.GetVisualChild(Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回 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。