Zooms and scrolls the view to fit the specified document rectangle in the Diagram's visible area.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
C# Copy Code |
---|
public void ZoomToRect ( |
Visual Basic Copy Code |
---|
Public Sub ZoomToRect( _ |
The scroll position and zoom factor of the view are set so the specified rectangular area of the document is entirely visible in the diagram's client area. This method works correctly only if the Diagram is placed inside a ScrollViewer.
WpfDiagram Programmer's Guide | © 2023 MindFusion |