Skip to main content

DiagramToolboxRegistrator.UnregisterStencil(DiagramStencil) Method

Removes the specified stencil from the Shapes Panel.

Namespace: DevExpress.Diagram.Core

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

NuGet Package: DevExpress.Diagram.Core

Declaration

public static void UnregisterStencil(
    DiagramStencil stencil
)

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