DiagramToolboxRegistrator.UnregisterStencil(DiagramStencil) Method
Removes the specified stencil from the Shapes Panel.
Namespace: DevExpress.Diagram.Core
Assembly: DevExpress.Diagram.v21.2.Core.dll
NuGet Package: DevExpress.Diagram.Core
Declaration
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