You are viewing help content for pre-release software. This document and the features it describes are subject to change. Switch to the current version.

DiagramControl.ActiveTool Property

Specifies the currently selected diagram tool. This is a dependency property.

Namespace: DevExpress.Xpf.Diagram

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


public DiagramTool ActiveTool { get; set; }
Public Property ActiveTool As DiagramTool

Property Value

Type Description

A DiagramTool object.


By default, the DiagramControl uses the pointer tool. Use the ActiveTool property to select the desired tool.

The example below shows how to implement a ToolBarControl that allows end-users to select a diagram tool.

diagramControl.ActiveTool = new ConnectorTool();


See Also