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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'宣告
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.