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
- ancestor
Type: System.Windows.Media.Visual
The Visual to test for an ancestor relationship.
Return Value
Type: System.Boolean
true if the Visual is a descendant of ancestor; otherwise, false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.