IVsSelectionContext Methods

 

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams.ExtensionEnablement
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

NameDescription
System_CAPS_pubmethodCanDeleteSelectedItems()

Determine whether selected item can be deleted or not

System_CAPS_pubmethodDeleteSelectedItems(String^)

Protected method to delete selected items

System_CAPS_pubmethodIsDiagramSelected()

Determines if the current selection is a diagram

NameDescription
System_CAPS_pubmethodAtLeastOneSelected<T>()

Overloaded. Helper returning true if the selection contains at least an element of type T(Defined by ExtensionContextExtensions.)

System_CAPS_pubmethodGetCurrentDocumentSelection<T>()

Get the subset of the current document selection which is of type T(Defined by ExtensionContextExtensions.)

System_CAPS_pubmethodGetCurrentSelection<T>()

Get the subset of the current selection which is of type T(Defined by ExtensionContextExtensions.)

System_CAPS_pubmethodIsAnyDocumentSelectionUndeletable()

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.)

System_CAPS_pubmethodIsSingleDocumentSelection()

Returns whether or not there is only one selected item on the active document.(Defined by ExtensionContextExtensions.)

System_CAPS_pubmethodIsSingleSelection()

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.)

Return to top
Show: