Search
DiagramView.ZoomToFit Method
See Also
 





Zooms the view to fit the diagram contents in the view client area.

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

 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