Compartilhar via


Decorator.Offset Property

Gets or sets the offset that modifies the default position of the decorator.

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

Syntax

'Declaração
Public Property Offset As PointD
    Get
    Set
public PointD Offset { get; set; }
public:
property PointD Offset {
    PointD get ();
    void set (PointD value);
}
member Offset : PointD with get, set
function get Offset () : PointD
function set Offset (value : PointD)

Property Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.PointD

Remarks

Changing the decorator offset 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

Decorator Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace