返回设计器视图的可视子级。
命名空间:  Microsoft.Windows.Design.Interaction
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)
语法
声明
Protected Overrides Function GetVisualChild ( _
    index As Integer _
) As Visual
protected override Visual GetVisualChild(
    int index
)
protected:
virtual Visual^ GetVisualChild(
    int index
) override
abstract GetVisualChild : 
        index:int -> Visual 
override GetVisualChild : 
        index:int -> Visual 
protected override function GetVisualChild(
    index : int
) : Visual
参数
- index
 类型:System.Int32
 可视子集合的索引(从零开始)。
返回值
类型:System.Windows.Media.Visual
指定索引处的 Visual。
备注
在默认实现中,index 的值必须为 0、 1 或 2。 下表显示了索引如何与视图的可视子级匹配。
| 索引 | 可视子级 | 
|---|---|
| 0 | 子级 | 
| 1 | 命中测试层 | 
| 2 | 装饰器层 | 
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.Windows.Design.Interaction 命名空间