Interface IDataCollection
- Namespace
- StockSharp.Xaml.Diagram.GXDiagram.Model
- Assembly
- StockSharp.Xaml.Diagram.dll
A serializable collection of data representing a set of nodes and links.
public interface IDataCollection
- Extension Methods
Properties
Links
Gets or sets the collection of link data.
IEnumerable<object> Links { get; set; }
Property Value
Remarks
This will always be an empty sequence for those models that do not support separate link data. Setting this property is an error for those models that do not support separate link data.
Note that this method is universal, because it can only assume the link data is of type object. The corresponding methods in the generic model classes operate on and return a specific link data type.
Model
Gets or sets the model holds this collection's data.
IDiagramModel Model { get; set; }
Property Value
Nodes
Gets or sets the collection of node data.
IEnumerable<object> Nodes { get; set; }
Property Value
Remarks
Note that this method is universal, because it can only assume the node data is of type object. The corresponding methods in the generic model classes operate on and return a specific node data type.
Methods
AddLink(object)
Add a link data to this collection.
void AddLink(object linkdata)
Parameters
linkdata
object
Remarks
This is an error for those models that do not support separate link data.
Note that this method is universal, because it can only assume the link data is of type object. The corresponding methods in the generic model classes operate on and return a specific link data type.
AddNode(object)
Add a node data to this collection.
void AddNode(object nodedata)
Parameters
nodedata
object
Remarks
Note that this method is universal, because it can only assume the node data is of type object. The corresponding methods in the generic model classes operate on and return a specific node data type.
ContainsLink(object)
This predicate is true if the given link data is in the collection of Links.
bool ContainsLink(object linkdata)
Parameters
linkdata
object
Returns
Remarks
This will always be false for those models that do not support separate link data.
Note that this method is universal, because it can only assume the link data is of type object. The corresponding methods in the generic model classes operate on and return a specific link data type.
ContainsNode(object)
This predicate is true if the given node data is in the collection of Nodes.
bool ContainsNode(object nodedata)
Parameters
nodedata
object
Returns
Remarks
Note that this method is universal, because it can only assume the node data is of type object. The corresponding methods in the generic model classes operate on and return a specific node data type.
RemoveLink(object)
Remove a link data from this collection.
void RemoveLink(object linkdata)
Parameters
linkdata
object
Remarks
This is an error for those models that do not support separate link data.
Note that this method is universal, because it can only assume the link data is of type object. The corresponding methods in the generic model classes operate on and return a specific link data type.
RemoveNode(object)
Remove a node data from this collection.
void RemoveNode(object nodedata)
Parameters
nodedata
object
Remarks
Note that this method is universal, because it can only assume the node data is of type object. The corresponding methods in the generic model classes operate on and return a specific node data type.