DiagramClientView.EnsureVisible Method

Include Protected Members
Include Inherited Members

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method 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 method 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 method 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.

Top

See Also

Reference

DiagramClientView Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace