ShapeElement.ChooseParentShape Method
Selects a parent shape for a new child shape, typically this shape.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'Declaration
Public Overridable Function ChooseParentShape ( _
childShape As ShapeElement _
) As ShapeElement
'Usage
Dim instance As ShapeElement
Dim childShape As ShapeElement
Dim returnValue As ShapeElement
returnValue = instance.ChooseParentShape(childShape)
public virtual ShapeElement ChooseParentShape(
ShapeElement childShape
)
public:
virtual ShapeElement^ ChooseParentShape(
ShapeElement^ childShape
)
public function ChooseParentShape(
childShape : ShapeElement
) : ShapeElement
Parameters
childShape
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElementThe new child shape.
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
The parent shape for the child shape.
Remarks
For more information, see FixUpChildShapes(ModelElement).
.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.