ViewItem.IsDescendantOf 方法 (Visual)

[本文档仅供预览,在以后的发行版中可能会发生更改。包含的空白主题用作占位符。]

获取一个值,该值指示该可视对象是否为指定的可视对象的后代。

命名空间:  Microsoft.Windows.Design.Interaction
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)

语法

声明
Public MustOverride Function IsDescendantOf ( _
    ancestor As Visual _
) As Boolean
public abstract bool IsDescendantOf(
    Visual ancestor
)
public:
virtual bool IsDescendantOf(
    Visual^ ancestor
) abstract
abstract IsDescendantOf : 
        ancestor:Visual -> bool 
public abstract function IsDescendantOf(
    ancestor : Visual
) : boolean

参数

返回值

类型:System.Boolean
如果 Visual 是 ancestor 的后代,则为 true;否则为 false。

.NET Framework 安全性

请参见

参考

ViewItem 类

IsDescendantOf 重载

Microsoft.Windows.Design.Interaction 命名空间