Zooms the view to fit the diagram contents in current viewport.
Namespace: MindFusion.Diagramming.WinForms
Assembly: MindFusion.Diagramming.WinForms
C# Copy Code |
---|
public void ZoomToFit () |
Visual Basic Copy Code |
---|
Public Sub ZoomToFit () |
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.
MindFusion.Diagramming Developer's Guide | © 2024 MindFusion |