Skip to main content

DiagramOptionsBehavior.ActiveTool Property

Specifies the currently selected diagram tool.

Namespace: DevExpress.XtraDiagram.Options

Assembly: DevExpress.XtraDiagram.v24.1.dll

NuGet Package: DevExpress.Win.Diagram

Declaration

[Browsable(false)]
public virtual DiagramTool ActiveTool { get; set; }

Property Value

Type Description
DiagramTool

A DiagramTool object.

Property Paths

You can access this nested property as listed below:

Object Type Path to ActiveTool
DiagramControl
.OptionsBehavior .ActiveTool

Remarks

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

diagramControl1.OptionsBehavior.ActiveTool = new ConnectorTool();
See Also