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

A path consists of a series of adjacent links.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Type Parameters:

TNode

TLink

Syntax:

C#
public class GraphPath<TNode, TLink> where TNode : new() where TLink : new()

Inheritance: objectGraphPath<TNode, TLink>

Constructors

Initializes a new instance of the GraphPath<TNode, TLink> class.

C#
public GraphPath()

Initializes a new instance of the GraphPath<TNode, TLink> class.

C#
public GraphPath(GraphPath<TNode, TLink> path)
Parameters:pathGraphPath<TNode, TLink>

The path from which a clone will be taken as a starting point for this path.

Properties

Gets or sets the collection of nodes and links this path is made of.

C#
public IList<object> Elements { get; set; }

IList<TLink>

Gets or sets the links of this path.

C#
public IList<TLink> Links { get; set; }
Property Value:

The links this path is made of.

Nodes

IList<TNode>

Gets or sets the nodes of this path.

C#
public IList<TNode> Nodes { get; }
Property Value:

The nodes this path is made of.

Gets length of this path (i.e. the amount of links).

C#
public int PathLength { get; }

Methods

Adds a links and a node to this path.

C#
public void Add(TLink edge, TNode node)
Parameters:edgeTLink

The layout link.

nodeTNode

The node.

Adds a link to this path.

C#
public void AddLink(TLink link)
Parameters:linkTLink

The link.

Adds a node to this path.

C#
public void AddNode(TNode node)
Parameters:nodeTNode

The node.

Reverses the nodes sequence.

C#
public void Reverse()