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)
Syntax
'Declaration
Public Sub EnsureVisible ( _
visibleRectangle As RectangleD, _
preferences As DiagramClientView.EnsureVisiblePreferences _
)
public void EnsureVisible(
RectangleD visibleRectangle,
DiagramClientView.EnsureVisiblePreferences preferences
)
public:
void EnsureVisible(
RectangleD visibleRectangle,
DiagramClientView::EnsureVisiblePreferences preferences
)
member EnsureVisible :
visibleRectangle:RectangleD *
preferences:DiagramClientView.EnsureVisiblePreferences -> unit
public function EnsureVisible(
visibleRectangle : RectangleD,
preferences : DiagramClientView.EnsureVisiblePreferences
)
Parameters
visibleRectangle
Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleDThe 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.EnsureVisiblePreferencesPreferences on how the rectangle should be made visible.
.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.