Share via


ViewItem.IsDescendantOf Method (ViewItem)

Determines whether the visual object is a descendant of the ancestor visual object.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
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

Parameters

Return Value

Type: System.Boolean
true if the ViewItem is a descendant of ancestor; otherwise, false.

.NET Framework Security

See Also

Reference

ViewItem Class

IsDescendantOf Overload

Microsoft.Windows.Design.Interaction Namespace