ExtensionContextExtensions.IsAnyDocumentSelectionUndeletable Method
Returns whether any of the shape items in the selection list cannot be deleted. This implementation checks for Compartment and MoveableHostShape shapes.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams.ExtensionEnablement
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function IsAnyDocumentSelectionUndeletable ( _
context As IVsSelectionContext _
) As Boolean
public static bool IsAnyDocumentSelectionUndeletable(
this IVsSelectionContext context
)
[ExtensionAttribute]
public:
static bool IsAnyDocumentSelectionUndeletable(
IVsSelectionContext^ context
)
static member IsAnyDocumentSelectionUndeletable :
context:IVsSelectionContext -> bool
public static function IsAnyDocumentSelectionUndeletable(
context : IVsSelectionContext
) : boolean
Parameters
Return Value
Type: System.Boolean
True means that at least one selected shape element cannot be deleted.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IVsSelectionContext. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
.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.
See Also
Reference
ExtensionContextExtensions Class
Microsoft.VisualStudio.Modeling.Diagrams.ExtensionEnablement Namespace