Share via


ViewItem.IsDescendantOf Method (Visual)

Gets a value that indicates whether the visual object is a descendant of the specified 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 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

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

ViewItem Class

IsDescendantOf Overload

Microsoft.Windows.Design.Interaction Namespace