DiagramControl.ActiveTool Property

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

Namespace: DevExpress.Xpf.Diagram

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

Declaration

[Browsable(false)]
public DiagramTool ActiveTool { get; set; }
<Browsable(False)>
Public Property ActiveTool As DiagramTool

Property Value

Type Description
DiagramTool

A DiagramTool object.

Remarks

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();

Implements

DevExpress.Diagram.Core.IDiagramControl.ActiveTool
See Also