Zooms the view to fit the document contents in the Diagram client area.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
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.
WpfDiagram Programmer's Guide | © 2023 MindFusion |