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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Declaração
Public Sub EnsureVisible ( _
visibleRectangle As RectangleD _
)
public void EnsureVisible(
RectangleD visibleRectangle
)
public:
void EnsureVisible(
RectangleD visibleRectangle
)
member EnsureVisible :
visibleRectangle:RectangleD -> unit
public function EnsureVisible(
visibleRectangle : RectangleD
)
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.