Skip to main content
A newer version of this page is available. .

DiagramToolboxRegistrator.RegisterStencil(DiagramStencil) Method

Adds the specified stencil to the Shapes Panel.

Namespace: DevExpress.Diagram.Core

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

NuGet Packages: DevExpress.Diagram.Core, DevExpress.WindowsDesktop.Diagram.Core

Declaration

public static void RegisterStencil(
    DiagramStencil stencil
)

Parameters

Name Type Description
stencil DiagramStencil

A DiagramStencil object that is the stencil to register.

Remarks

Use the DiagramStencil.Create method to create a new stencil.

See the examples:

The following code snippets (auto-collected from DevExpress Examples) contain references to the RegisterStencil(DiagramStencil) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also