共用方式為


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 命名空間