Search
Diagram.ResizeToFitItems Method (Double)
See Also
 





Resizes the document scrollable area so it fits all diagram items.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public void ResizeToFitItems (
    double borderGap
)

Visual Basic  Copy Code

Public Sub ResizeToFitItems( _
    borderGap As Double _
)

 Parameters

borderGap

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

 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