DataCollection

StockSharp.Xaml.Diagram.GXDiagram.Model.GraphLinksModel`4

This nested class is a serializable collection of node data and link data.

Implements: IDataCollection

Properties

Model
public GraphLinksModel<NodeType, NodeKey, PortKey, LinkType> Model { get; set; }
value = dataCollection.Model
dataCollection.Model = value

Gets or sets the model that owns all of the nodes in this collection.

Nodes
public IEnumerable<NodeType> Nodes { get; set; }
value = dataCollection.Nodes
dataCollection.Nodes = value

Gets or sets the collection of node data, each of type .

Methods

AddNode
public void AddNode(NodeType nodedata)
dataCollection.AddNode(nodedata)

Add a node data to this collection.

nodedata
the data type is the model's NodeType type parameter
ContainsNode
public bool ContainsNode(NodeType nodedata)
result = dataCollection.ContainsNode(nodedata)

This predicate is true if the given node data is in the collection of Nodes.

nodedata
the data type is the model's NodeType type parameter
RemoveNode
public void RemoveNode(NodeType nodedata)
dataCollection.RemoveNode(nodedata)

Remove a node data from this collection.

nodedata
the data type is the model's NodeType type parameter