FactoryConnectorTool Class

Allows you to create custom connector tools.

Namespace: DevExpress.Diagram.Core

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

Declaration

public class FactoryConnectorTool :
    ConnectorTool
Public Class FactoryConnectorTool
    Inherits ConnectorTool

Remarks

The example below illustrates how to create a custom connector tool and use it as the Ribbon's Connector tool.

Winforms:


diagramControl1.OptionsBehavior.ConnectorTool = new DevExpress.Diagram.Core.FactoryConnectorTool(
    "CurvedConnector",
    () => "CurvedConnector",
    diagram => new DiagramConnector() { Type = DevExpress.Diagram.Core.ConnectorType.Curved });

WPF:


diagram.ConnectorTool = new DevExpress.Diagram.Core.FactoryConnectorTool(
    "CurvedConnector",
    () => "CurvedConnector",
    diagram => new DiagramConnector() { Type = DevExpress.Diagram.Core.ConnectorType.Curved });

Inheritance

Object
DevExpress.Utils.ImmutableObject
DiagramTool
DevExpress.Diagram.Core.ConnectorTool
FactoryConnectorTool
See Also