DiagramToolboxRegistrator.RegisterStencil(DiagramStencil) Method
Adds the specified stencil to the Shapes Panel.
Namespace: DevExpress.Diagram.Core
Assembly: DevExpress.Diagram.v23.2.Core.dll
NuGet Package: DevExpress.Diagram.Core
Declaration
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:
- Winforms: How to: Create Custom Shapes with Connection Points
- WPF: How to Create Custom Shapes with Custom Connection Points for DiagramDesignerControl
Related GitHub 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.