SelectedShapesCollection.EnsureVisible Method
Ensures that the selection is within the view. If it is not, it is centered in the view. If the selection is the diagram, then nothing happens.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)
Syntax
'Declaration
Public Sub EnsureVisible
public void EnsureVisible()
public:
void EnsureVisible()
member EnsureVisible : unit -> unit
public function EnsureVisible()
.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.