New to Telerik UI for WinFormsStart a free 30-day trial

Service handling the routing of the connections.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public class RoutingService : GraphServiceBase, IRoutingService

Inheritance: objectGraphServiceBaseRoutingService

Implements: IRoutingService

Inherited Members GraphServiceBase.Graph

Constructors

Initializes a new instance of the RoutingService class.

C#
public RoutingService(IGraphInternal graph)
Parameters:graphIGraphInternal

The graph.

Properties

Gets or sets the auto update property.

C#
public bool AutoUpdate { get; set; }

Implements: IRoutingService.AutoUpdate

Gets or sets the floating connection router.

C#
public IRouter FreeRouter { get; set; }

Implements: IRoutingService.FreeRouter

Gets or sets the reflexive router.

C#
public IRouter ReflexiveRouter { get; set; }
Property Value:

The reflexive router.

Implements: IRoutingService.ReflexiveRouter

Gets or sets the connection router.

C#
public IRouter Router { get; set; }

Implements: IRoutingService.Router

Methods

Automatically updates the connections.

C#
public virtual void AutoUpdateConnections(IShape shape)
Parameters:shapeIShape

The shape which bound's have changed.

Implements: IRoutingService.AutoUpdateConnections(IShape)

Creates the connection route.

C#
public virtual ConnectionRoute FindExtendedRoute(IConnection connection)
Parameters:connectionIConnection

The connection which should be routed.

Returns:

ConnectionRoute

A list of intermediate points defining the route and the start and end connectors.

Implements: IRoutingService.FindExtendedRoute(IConnection)

Remarks:

The routing works only for the Spline and Polyline types.

Creates the connection route.

C#
public virtual IList<Point> FindRoute(IConnection connection)
Parameters:connectionIConnection

The connection which should be routed.

Returns:

IList<Point>

A list of intermediate points defining the route.

Implements: IRoutingService.FindRoute(IConnection)

Remarks:

The routing works only for the Spline and Polyline types.