ShapeElement.IsDescendantOf Method

Verifies whether the shape is a descendent of another shape.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

Syntax

'Declaration
Public Function IsDescendantOf ( _
    potentialAncestor As ShapeElement _
) As Boolean
public bool IsDescendantOf(
    ShapeElement potentialAncestor
)
public:
bool IsDescendantOf(
    ShapeElement^ potentialAncestor
)
member IsDescendantOf : 
        potentialAncestor:ShapeElement -> bool
public function IsDescendantOf(
    potentialAncestor : ShapeElement
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the shape is the descendent of another shape; otherwise, false.

.NET Framework Security

See Also

Reference

ShapeElement Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace