Gets the host shape.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'宣言
Public Overridable Function GetHostShape ( _
rootShape As ShapeElement _
) As DecoratorHostShape
'使用
Dim instance As Decorator
Dim rootShape As ShapeElement
Dim returnValue As DecoratorHostShape
returnValue = instance.GetHostShape(rootShape)
public virtual DecoratorHostShape GetHostShape(
ShapeElement rootShape
)
public:
virtual DecoratorHostShape^ GetHostShape(
ShapeElement^ rootShape
)
public function GetHostShape(
rootShape : ShapeElement
) : DecoratorHostShape
Parameters
rootShape
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElementThe shape to which the host shape is assigned.
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.DecoratorHostShape
The host shape.
Permissions
- 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.