DiagramLite Programmer's Guide
Diagram.Bounds Property
See Also
 





Gets or sets a value representing the size of the diagram's scrollable area.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming.Silverlight

 Syntax

C#  Copy Code

public Rect Bounds { get; set; }

Visual Basic  Copy Code

Public Property Bounds As Rect

 Property Value

A System.Windows.Rect specifying the diagram size. The default is A4 size (210 x 297 millimeters).

 Remarks

You should use this property to set the diagram size rather then Width and Height inherited from Control. Width and Height are automatically set to the Bounds dimensions combined with a scale transform derived from the MeasureUnit and ZoomFactor values.

 See Also

Diagram Members
Diagram Class
MindFusion.Diagramming Namespace
ResizeToFitItems Method
AutoResize Property