ViewItem.IsDescendantOf 方法 (ViewItem)

确定可视对象是否为上级可视对象的后代。

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

语法

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

参数

返回值

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

.NET Framework 安全性

请参见

参考

ViewItem 类

IsDescendantOf 重载

Microsoft.Windows.Design.Interaction 命名空间