Search
DiagramView.ZoomToRect Method (RectangleF)
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
)

Visual Basic  Copy Code

Public Sub ZoomToRect( _
    rect As RectangleF _
)

 Parameters

rect
A RectangleF instance specifying viewport position and size.

 Remarks

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.

 See Also