This topic has not yet been rated - Rate this topic

NodeShape.Bounds Property

A domain property that gets or sets the size and position of the bounding rectangle of the shape, measured relative to the top left of the ParentShape.

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

To get or set the bounds measured relative to the Diagram, use AbsoluteBounds.

You can override OnAbsoluteBoundsChanged(AbsoluteBoundsChangedEventArgs) to respond to changes in the size or position of shapes of a particular class. Alternatively, you can listen for changes in a specific shape by adding an event listener for AbsoluteBoundsChanged.

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