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

Data class holding the information regarding a sub-diagram contained in a container. If the Container is null it means the sub-diagram is the top-level graph.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Type Parameters:

TNodeData

The type of the node data.

TLinkData

The type of the link data.

Syntax:

C#
public class ContainerGraph<TNodeData, TLinkData> where TNodeData : new() where TLinkData : new()

Inheritance: objectContainerGraph<TNodeData, TLinkData>

Constructors

Initializes a new instance of the ContainerGraph<TNodeData, TLinkData> class.

C#
public ContainerGraph()

Initializes a new instance of the ContainerGraph<TNodeData, TLinkData> class.

C#
public ContainerGraph(IGraph diagram)
Parameters:diagramIGraph

The diagram.

Properties

Gets or sets the container that this graph is linked to.

C#
public IContainerShape Container { get; set; }

ContainerNode

Node<TNodeData, TLinkData>

Gets or sets the Node of the Container and which does not sit in the Graph since a container organizes its children but not itself. This property is null if the Container is null, which happens when the HyperNode represents the global layout (the Canvas is not a container obviously).

C#
public Node<TNodeData, TLinkData> ContainerNode { get; set; }

Graph

Graph<TNodeData, TLinkData>

Gets or sets the graph that the Container holds and which is a subset of the total graph.

C#
public Graph<TNodeData, TLinkData> Graph { get; set; }