Zooms and scrolls the view to fit the specified diagram rectangle in the viewport.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
C#
![]() |
---|
public void ZoomToRect ( |
Visual Basic
![]() |
---|
Public Sub ZoomToRect( _ |
A Rect instance specifying viewport position and size.
The scroll position and zoom factor of the DiagramView are set so that specified rectangular area of the diagram is entirely visible in the viewport.
WpfDiagram Programmer's Guide | © 2025 MindFusion |