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