Skip to main content
A newer version of this page is available. .

FactoryConnectorTool Class

Allows you to create custom connector tools.

Namespace: DevExpress.Diagram.Core

Assembly: DevExpress.Diagram.v18.2.Core.dll

Declaration

public class FactoryConnectorTool :
    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