ShapeElement.IsDescendantOf Method
Verifies whether the shape is a descendent of another shape.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.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
potentialAncestor
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElementThe shape to check.
Return Value
Type: Boolean
true if the shape is the descendent of another shape; 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.