ASP.NET Pack Programmer's Guide
Diagram.ResizeToFitItems Method (Single, Boolean)
See Also
 





Resizes the document scrollable area so it fits all diagram items, optionally considering only the visible items.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public void ResizeToFitItems (
    float borderGap,
    bool onlyVisible
)

Visual Basic  Copy Code

Public Sub ResizeToFitItems( _
    borderGap As Single, _
    onlyVisible As Boolean _
)

 Parameters

borderGap

A gap that should be left as a border around the diagram.

onlyVisible
Specifies whether only the bounds of the Visible items should be included in the new document area.

 Remarks

Resizes the document area to be just as big as needed, for example the smallest rectangle containing all diagram items. For aesthetic reasons, additional space can be left around the outmost items as a margin. Invoking the method on an empty document produces no result.

 See Also

ResizeToFitItems Method Overload List
Diagram Members
Diagram Class
MindFusion.Diagramming Namespace
AutoResize Method
Bounds Property