DiagramClientView::EnsureVisible Method (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.

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

public:
void EnsureVisible(
	RectangleD visibleRectangle,
	DiagramClientView::EnsureVisiblePreferences preferences
)

Parameters

visibleRectangle
Type: Microsoft.VisualStudio.Modeling.Diagrams::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
Type: Microsoft.VisualStudio.Modeling.Diagrams::DiagramClientView::EnsureVisiblePreferences

Preferences on how the rectangle should be made visible.

Return to top
Show: