Search
IDiagramView.ZoomToRect Method
See Also
 





Zooms and scrolls the view to fit the specified document rectangle in the view's client area.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

void ZoomToRect (
    Rect rect,
    bool centered
)

Visual Basic  Copy Code

Sub ZoomToRect( _
    rect As Rect, _
    centered As Boolean _
)

 Parameters

rect

A Microsoft.Maui.Graphics.Rect specifying the desired viewport's position and size.

centered

true to center the rectangle in viewport, or false to align it to top-left corner.

 See Also