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

DiagramControl.RegisterRoutingStrategy(ConnectorType, DiagramRoutingStrategy) Method

Registers a custom routing strategy for the specified connector type.

Namespace: DevExpress.Xpf.Diagram

Assembly: DevExpress.Xpf.Diagram.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Diagram, DevExpress.Wpf.Diagram

Declaration

public void RegisterRoutingStrategy(
    ConnectorType connectorType,
    DiagramRoutingStrategy routingStrategy
)

Parameters

Name Type Description
connectorType ConnectorType

A connector type to which to apply the routing strategy.

routingStrategy DevExpress.Diagram.Core.Routing.DiagramRoutingStrategy

A DevExpress.Diagram.Core.Routing.DiagramRoutingStrategy descendant that defines the custom routing strategy.

Remarks

The DiagramControl.UnregisterRoutingStrategy removes the custom routing strategy applied to the specified connector type.

See Also