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

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
)

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.

Return to top
Show: