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 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'Declaration
Public Overridable Property Bounds As RectangleD
'Usage
Dim instance As NodeShape
Dim value As RectangleD
value = instance.Bounds
instance.Bounds = value
public virtual RectangleD Bounds { get; set; }
public:
virtual property RectangleD Bounds {
RectangleD get ();
void set (RectangleD value);
}
public function get Bounds () : RectangleD
public function set Bounds (value : RectangleD)
Property Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
Remarks
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.
.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.
See Also
Reference
Microsoft.VisualStudio.Modeling.Diagrams Namespace