Search
DiagramView.ZoomToFit Method
See Also
 





Zooms the view to fit the diagram contents in current viewport.

Namespace: MindFusion.Diagramming.WinForms
Assembly: MindFusion.Diagramming.WinForms

 Syntax

C#  Copy Code

public void ZoomToFit ()

Visual Basic  Copy Code

Public Sub ZoomToFit ()

 Remarks

ZoomToFit calculates the extents of the rectangle that contain all diagram items and sets the scroll position and zoom factor of the view to fit exactly that rectangle. As a result the whole diagram is displayed on the screen, with the lowest possible zoom.

 See Also