DiagramClientView.EnsureVisible Method

Definition

Overloads

EnsureVisible(RectangleD)

Ensures that the specified rectangle is visible in the view.
Based on VisiblePreference setting for the Diagram, the RectangleD will be brought into view. ZoomOut may be used to fit the RectangleD iff MinimalScrollWithNoZoom VisiblePreference is not selected for this Diagram. Scrolling may be used to fit the RectangleD and depending on the VisiblePreference setting selected for the diagram, either the center of the Rectangle will be brought into view center or minimal scrolling that is required to bring the Rectangle into view will be done.

EnsureVisible(ICollection<ShapeElement>)

Ensures that the specified shapes are visible in the view. This may require changes to the scroll positions and to the zoom.

EnsureVisible(RectangleD, DiagramClientView+EnsureVisiblePreferences)

Ensures that the specified rectangle is visible in the view. This may require changes to the scroll positions and to the zoom.

EnsureVisible(RectangleD)

Ensures that the specified rectangle is visible in the view.
Based on VisiblePreference setting for the Diagram, the RectangleD will be brought into view. ZoomOut may be used to fit the RectangleD iff MinimalScrollWithNoZoom VisiblePreference is not selected for this Diagram. Scrolling may be used to fit the RectangleD and depending on the VisiblePreference setting selected for the diagram, either the center of the Rectangle will be brought into view center or minimal scrolling that is required to bring the Rectangle into view will be done.

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

Parameters

visibleRectangle
RectangleD

The rectangle to ensure is visible in the view. The coordinates are in world units relative to the top-left of the diagram.

Applies to

EnsureVisible(ICollection<ShapeElement>)

Ensures that the specified shapes are visible in the view. This may require changes to the scroll positions and to the zoom.

public:
 void EnsureVisible(System::Collections::Generic::ICollection<Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^> ^ shapeElementCollection);
public void EnsureVisible (System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement> shapeElementCollection);
member this.EnsureVisible : System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement> -> unit
Public Sub EnsureVisible (shapeElementCollection As ICollection(Of ShapeElement))

Parameters

shapeElementCollection
ICollection<ShapeElement>

Applies to

EnsureVisible(RectangleD, DiagramClientView+EnsureVisiblePreferences)

Ensures that the specified rectangle is visible in the view. This may require changes to the scroll positions and to the zoom.

public:
 void EnsureVisible(Microsoft::VisualStudio::Modeling::Diagrams::RectangleD visibleRectangle, Microsoft::VisualStudio::Modeling::Diagrams::DiagramClientView::EnsureVisiblePreferences preferences);
public void EnsureVisible (Microsoft.VisualStudio.Modeling.Diagrams.RectangleD visibleRectangle, Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView.EnsureVisiblePreferences preferences);
member this.EnsureVisible : Microsoft.VisualStudio.Modeling.Diagrams.RectangleD * Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView.EnsureVisiblePreferences -> unit
Public Sub EnsureVisible (visibleRectangle As RectangleD, preferences As DiagramClientView.EnsureVisiblePreferences)

Parameters

visibleRectangle
RectangleD

The rectangle to ensure is visible in the view. The coordinates are in world units relative to the top-left of the diagram.

preferences
DiagramClientView.EnsureVisiblePreferences

Preferences on how the rectangle should be made visible.

Applies to