NodeShape::AbsoluteBounds Property
Visual Studio 2015
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 diagram.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
public: [DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.NodeShape/AbsoluteBounds.DisplayName", (CoreDesignSurfaceDomainModel^::typeid), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")] [DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.NodeShape/AbsoluteBounds.Description", (CoreDesignSurfaceDomainModel^::typeid), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")] [BrowsableAttribute(false)] [DomainPropertyAttribute(Kind = DomainPropertyKind::CustomStorage)] [DomainObjectIdAttribute("7d8fa935-dc8e-43b6-a72d-be8f5bc5c17b")] property RectangleD AbsoluteBounds { RectangleD get(); void set(RectangleD value); }
Property Value
Type: Microsoft.VisualStudio.Modeling.Diagrams::RectangleDTo get or set the bounds measured relative to the ParentShape, use Bounds.
You can override OnAbsoluteBoundsChanged 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.
Show: