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
'Declaration
Public Property Offset As PointD
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
- 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.