SelectedShapesCollection.Set Method (DiagramItem)
Replaces the current selection with a new single selection.
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 Set ( _
diagramItem As DiagramItem _
)
public void Set(
DiagramItem diagramItem
)
public:
void Set(
DiagramItem^ diagramItem
)
member Set :
diagramItem:DiagramItem -> unit
public function Set(
diagramItem : DiagramItem
)
Parameters
- diagramItem
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem
The DiagramItem that is to replace the current selection.
Remarks
If the DiagramItem is null, then the selection is cleared.
.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.