Decorator.ConfigureHostShape Method

Creates a host shape or configures an existing host shape.

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

Syntax

'宣言
Public Overridable Function ConfigureHostShape ( _
    parent As ShapeElement _
) As DecoratorHostShape
'使用
Dim instance As Decorator
Dim parent As ShapeElement
Dim returnValue As DecoratorHostShape

returnValue = instance.ConfigureHostShape(parent)
public virtual DecoratorHostShape ConfigureHostShape(
    ShapeElement parent
)
public:
virtual DecoratorHostShape^ ConfigureHostShape(
    ShapeElement^ parent
)
public function ConfigureHostShape(
    parent : ShapeElement
) : DecoratorHostShape

Parameters

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.

Permissions

See Also

Reference

Decorator Class

Decorator Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace