Search
DiagramView.ZoomToRect Method (RectangleF, Boolean)
See Also
 





Zooms and scrolls the view to fit the specified document rectangle in the viewport.

Namespace: MindFusion.Diagramming.WinForms
Assembly: MindFusion.Diagramming.WinForms

 Syntax

C#  Copy Code

public void ZoomToRect (
    RectangleF rect,
    bool centered
)

Visual Basic  Copy Code

Public Sub ZoomToRect( _
    rect As RectangleF, _
    centered As Boolean _
)

 Parameters

rect

A RectangleF instance 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