DataCollection
StockSharp.Xaml.Diagram.GXDiagram.Model.GraphLinksModel`4
This nested class is a serializable collection of node data and link data.
Implements: IDataCollection
Properties
Links
public IEnumerable<LinkType> Links { get; set; }
value = dataCollection.Links
dataCollection.Links = value
Gets or sets the collection of link data, each of type .
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
AddLink
public void AddLink(LinkType linkdata)
dataCollection.AddLink(linkdata)
Add a link data to this collection.
- linkdata
- the data type is the model's LinkType type parameter
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
ContainsLink
public bool ContainsLink(LinkType linkdata)
result = dataCollection.ContainsLink(linkdata)
This predicate is true if the given link data is in the collection of Links.
- linkdata
- the data type is the model's LinkType 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
RemoveLink
public void RemoveLink(LinkType linkdata)
dataCollection.RemoveLink(linkdata)
Remove a link data from this collection.
- linkdata
- the data type is the model's LinkType 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