共用方式為


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