Deletes the diagram type. When setting the 'deleteDescendants' parameter to TRUE, all the diagram types that inherit from this diagram type are also deleted.
[Visual Basic 6.0] Sub Delete(
[ByVal deleteDescendants As Boolean] _
) As Empty
[Visual Basic .NET] Public Sub Delete ( _ [ByVal deleteDescendants As Boolean] _ )
[C#] public void Delete ( bool deleteDescendants );
Optional Values
[Java] public void delete ( Boolean deleteDescendants ) throws IOException, AutomationException
[C++]
HRESULT Delete(
VARIANT_BOOL deleteDescendants
);
Parameters
deleteDescendants [in, optional, defaultvalue(VARIANT_TRUE)]
deleteDescendants is a parameter of type VARIANT_BOOL
Note that the TRUE value is the default value for the deleteDescendants parameter.
Here is a sample call of the Delete method:
Dim pDiagramType As INgDiagramType
...
pDiagramType.Delete