DiagramToolboxRegistrator.UnregisterStencil(DiagramStencil) Method

Removes the specified stencil from the Shapes Panel.

Namespace: DevExpress.Diagram.Core

Assembly: DevExpress.Diagram.v19.2.Core.dll

Declaration

public static void UnregisterStencil(
    DiagramStencil stencil
)
Public Shared Sub UnregisterStencil(
    stencil As DiagramStencil
)

Parameters

Name Type Description
stencil DiagramStencil

A DiagramStencil object that is the stencil to remove.

Remarks

The example below illustrates how to remove all default stencils from the Shapes Panel.


List<DiagramStencil> Stencils = DiagramToolboxRegistrator.Stencils.ToList<DiagramStencil>();
Stencils.ForEach(s => DiagramToolboxRegistrator.UnregisterStencil(s));
See Also