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
參數
- ancestor
型別:Microsoft.Windows.Design.Interaction.ViewItem
要測試上階關聯性的 ViewItem。
傳回值
型別:System.Boolean
如果 ViewItem 為 ancestor 的子系,則為 true,否則為 false。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。