Decorator.ConfigureHostShape Method
Creates a host shape or configures an existing host shape.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'宣告
Public Overridable Function ConfigureHostShape ( _
parent As ShapeElement _
) As DecoratorHostShape
public virtual DecoratorHostShape ConfigureHostShape(
ShapeElement parent
)
public:
virtual DecoratorHostShape^ ConfigureHostShape(
ShapeElement^ parent
)
abstract ConfigureHostShape :
parent:ShapeElement -> DecoratorHostShape
override ConfigureHostShape :
parent:ShapeElement -> DecoratorHostShape
public function ConfigureHostShape(
parent : ShapeElement
) : DecoratorHostShape
Parameters
- parent
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
The shape to which the host shape will be assigned.
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.DecoratorHostShape
The new or updated host shape.
Remarks
If the shape to which the decorator is assigned does not have a host shape, one is created. If a host shape already exists, the settings for the decorator are applied to the existing host shape.
.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.