Share via


CommandSet.IsCurrentDiagramEmpty Method

Verifies whether the diagram contains any shapes.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)

Syntax

'Declaration
Protected Function IsCurrentDiagramEmpty As Boolean
'Usage
Dim returnValue As Boolean 

returnValue = Me.IsCurrentDiagramEmpty()
protected bool IsCurrentDiagramEmpty()
protected:
bool IsCurrentDiagramEmpty()
protected function IsCurrentDiagramEmpty() : boolean

Return Value

Type: System.Boolean
true if the diagram contains no shapes; otherwise, false.

.NET Framework Security

See Also

Reference

CommandSet Class

CommandSet Members

Microsoft.VisualStudio.Modeling.Shell Namespace