Share via


DiagramClientView.ZoomToFit Method

Definition

Overloads

ZoomToFit()

Zooms in or out to show the entire diagram as large as possible.

ZoomToFit(RectangleD)

Zooms to show the portion of the diagram given by the specified rectangle.

ZoomToFit()

Zooms in or out to show the entire diagram as large as possible.

public:
 void ZoomToFit();
public void ZoomToFit ();
member this.ZoomToFit : unit -> unit
Public Sub ZoomToFit ()

Applies to

ZoomToFit(RectangleD)

Zooms to show the portion of the diagram given by the specified rectangle.

public:
 void ZoomToFit(Microsoft::VisualStudio::Modeling::Diagrams::RectangleD viewRectangle);
public void ZoomToFit (Microsoft.VisualStudio.Modeling.Diagrams.RectangleD viewRectangle);
member this.ZoomToFit : Microsoft.VisualStudio.Modeling.Diagrams.RectangleD -> unit
Public Sub ZoomToFit (viewRectangle As RectangleD)

Parameters

viewRectangle
RectangleD

The rectangle of the view in world units relative to Diagram's top-left.

Applies to