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