This topic has not yet been rated - Rate this topic

NodeShape.AbsoluteBoundingBox Property

The bounding rectangle of the shape, measured relative to the Diagram.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
public override RectangleD AbsoluteBoundingBox { get; }

Property Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
The absolute bounding rectangle for the shape.

To set the size or position of the shape, use AbsoluteBounds. This property is provided for uniformity with other ShapeElements.

You can override OnAbsoluteBoundsChanged(AbsoluteBoundsChangedEventArgs) to respond to changes in the size or position.

The coordinate system is in world units and increases positively down and to the right.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ