ClassGraphPath<TNode, TLink>
A path consists of a series of adjacent links.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.WinControls.RadDiagram.dll
Type Parameters:
TNode
TLink
Syntax:
public class GraphPath<TNode, TLink> where TNode : new() where TLink : new()
Inheritance: objectGraphPath<TNode, TLink>
Constructors
GraphPath()
Initializes a new instance of the GraphPath<TNode, TLink> class.
Declaration
public GraphPath()
GraphPath(GraphPath<TNode, TLink>)
Initializes a new instance of the GraphPath<TNode, TLink> class.
Declaration
public GraphPath(GraphPath<TNode, TLink> path)
Parameters
path
GraphPath<TNode, TLink>
The path from which a clone will be taken as a starting point for this path.
Properties
Elements
Gets or sets the collection of nodes and links this path is made of.
Declaration
public IList<object> Elements { get; set; }
Property Value
IList<object>
Links
Gets or sets the links of this path.
Declaration
public IList<TLink> Links { get; set; }
Property Value
IList<TLink>
The links this path is made of.
Nodes
Gets or sets the nodes of this path.
Declaration
public IList<TNode> Nodes { get; }
Property Value
IList<TNode>
The nodes this path is made of.
PathLength
Gets length of this path (i.e. the amount of links).
Methods
Add(TLink, TNode)
Adds a links and a node to this path.
Declaration
public void Add(TLink edge, TNode node)
Parameters
edge
TLink
The layout link.
node
TNode
The node.
AddLink(TLink)
Adds a link to this path.
Declaration
public void AddLink(TLink link)
Parameters
link
TLink
The link.
AddNode(TNode)
Adds a node to this path.
Declaration
public void AddNode(TNode node)
Parameters
node
TNode
The node.