corelibraries-devexpress-dot-diagram-dot-core-869a6448.md
Allows you to create custom connector tools.
Namespace : DevExpress.Diagram.Core
Assembly : DevExpress.Diagram.v25.2.Core.dll
NuGet Package : DevExpress.Diagram.Core
public class FactoryConnectorTool :
ConnectorTool
Public Class FactoryConnectorTool
Inherits ConnectorTool
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 });
diagramControl1.OptionsBehavior.ConnectorTool = New DevExpress.Diagram.Core.FactoryConnectorTool(
"CurvedConnector",
Function() "CurvedConnector",
Function(diagram) New DiagramConnector() With {.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 });
diagram.ConnectorTool = New DevExpress.Diagram.Core.FactoryConnectorTool(
"CurvedConnector",
Function() "CurvedConnector",
Function(diagram) New DiagramConnector() With {.Type = DevExpress.Diagram.Core.ConnectorType.Curved})
Object DevExpress.Utils.ImmutableObject DiagramTool DevExpress.Diagram.Core.ConnectorTool FactoryConnectorTool
See Also