Class
ContainerGraph<TNodeData, TLinkData>

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:

cs-api-definition
public class ContainerGraph<TNodeData, TLinkData> where TNodeData : new() where TLinkData : new()

Inheritance: objectContainerGraph<TNodeData, TLinkData>

Constructors

ContainerGraph()

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

Declaration

cs-api-definition
public ContainerGraph()

ContainerGraph(IGraph)

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

Declaration

cs-api-definition
public ContainerGraph(IGraph diagram)

Parameters

diagram

IGraph

The diagram.

Properties

Container

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

Declaration

cs-api-definition
public IContainerShape Container { get; set; }

Property Value

IContainerShape

ContainerNode

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).

Declaration

cs-api-definition
public Node<TNodeData, TLinkData> ContainerNode { get; set; }

Property Value

Node<TNodeData, TLinkData>

Graph

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

Declaration

cs-api-definition
public Graph<TNodeData, TLinkData> Graph { get; set; }

Property Value

Graph<TNodeData, TLinkData>