Share via


ShapeDecorator.Position Property

Gets or sets the position of this decorator relative to the parent 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 Property Position As ShapeDecoratorPosition
public ShapeDecoratorPosition Position { get; set; }
public:
property ShapeDecoratorPosition Position {
    ShapeDecoratorPosition get ();
    void set (ShapeDecoratorPosition value);
}
member Position : ShapeDecoratorPosition with get, set
function get Position () : ShapeDecoratorPosition 
function set Position (value : ShapeDecoratorPosition)

Property Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeDecoratorPosition

Remarks

Changing the position of the decorator does not automatically cause the diagram to update. If the decorator exists inside the shape, all shapes using the decorator must be invalidated after the change. If the decorator exists outside the shape, ConfigureHostShape and RepositionHostShape must be called for all host shapes hosting this decorator.

.NET Framework Security

See Also

Reference

ShapeDecorator Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace