Skip to main content

DiagramStencil.RegisterTool(ItemTool) Method

Adds the specified item tool to the stencil.

Namespace: DevExpress.Diagram.Core

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

NuGet Package: DevExpress.Diagram.Core

Declaration

public void RegisterTool(
    ItemTool tool
)

Parameters

Name Type Description
tool DevExpress.Diagram.Core.ItemTool

A DevExpress.Diagram.Core.ItemTool descendant.

Remarks

The RegisterTool method is used to register custom diagram items in the Shapes Panel. To register regular shapes, use the DiagramStencil.RegisterShape method.

The following code snippets (auto-collected from DevExpress Examples) contain references to the RegisterTool(ItemTool) 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