IVsSelectionContext Interface
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
| Name | Description | |
|---|---|---|
![]() | CurrentContextMenuHost | Get the current context menu host |
![]() | CurrentDocumentSelection | Returns the collection of selected elements in the active document window. |
![]() | CurrentSelection | Returns the collection of selected elements in the active window. This could be a document window or tool window. |
![]() | CurrentStore | Store associated to the current DocData normally. But other can override it in case of special needs ($$$common Store for instance) |
![]() | DiagramClientView | Gets the currently focused DiagramClientView |
![]() | SingleDocumentSelection | Returns the primary selected object in the active document window. |
![]() | SingleSelection | Returns the primary selected object in active window. This could be a document window or tool window. |
| Name | Description | |
|---|---|---|
![]() | CanDeleteSelectedItems() | Determine whether selected item can be deleted or not |
![]() | DeleteSelectedItems(String^) | Protected method to delete selected items |
![]() | IsDiagramSelected() | Determines if the current selection is a diagram |
| Name | Description | |
|---|---|---|
![]() | AtLeastOneSelected<T>() | Overloaded. Helper returning true if the selection contains at least an element of type T(Defined by ExtensionContextExtensions.) |
![]() | GetCurrentDocumentSelection<T>() | Get the subset of the current document selection which is of type T(Defined by ExtensionContextExtensions.) |
![]() | GetCurrentSelection<T>() | Get the subset of the current selection which is of type T(Defined by ExtensionContextExtensions.) |
![]() | IsAnyDocumentSelectionUndeletable() | Returns whether any of the shape items in the selection list cannot be deleted. This implementation checks for Compartment and MoveableHostShape shapes.(Defined by ExtensionContextExtensions.) |
![]() | IsSingleDocumentSelection() | Returns whether or not there is only one selected item on the active document.(Defined by ExtensionContextExtensions.) |
![]() | IsSingleSelection() | Returns whether or not there is only one selected item on the active window. This could be a document or tool window.(Defined by ExtensionContextExtensions.) |

