Back to Devexpress

DiagramOptionsBehavior.ActiveTool Property

windowsforms-devexpress-dot-xtradiagram-dot-options-dot-diagramoptionsbehavior-e1470a5e.md

latest2.0 KB
Original Source

DiagramOptionsBehavior.ActiveTool Property

Specifies the currently selected diagram tool.

Namespace : DevExpress.XtraDiagram.Options

Assembly : DevExpress.XtraDiagram.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

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

Property Value

TypeDescription
DiagramTool

A DiagramTool object.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ActiveTool
DiagramControl

.OptionsBehavior .ActiveTool

|

Remarks

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

csharp
diagramControl1.OptionsBehavior.ActiveTool = new ConnectorTool();
vb
diagramControl1.OptionsBehavior.ActiveTool = New ConnectorTool()

See Also

DiagramOptionsBehavior Class

DiagramOptionsBehavior Members

DevExpress.XtraDiagram.Options Namespace