Gets or sets a value representing the size of the diagram's scrollable area.
Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming
C# Copy Code |
---|
public RectangleF Bounds { get; set; } |
Visual Basic Copy Code |
---|
Public Property Bounds As RectangleF |
An instance of the .NET RectangleF structure. The default size of the document is the standard A4 size, that is 210x297.
Use this property to specify how large a document should be, that is, how far it can be scrolled. If ShowScrollbars is enabled, setting the document extents also updates the scrollbar ranges. After creating a diagram programmatically, you might wish to call ResizeToFitItems to make the scrollable area just big enough to contain all diagram elements.
NetDiagram Programmer's Guide | © 2023 MindFusion |