Table of Contents

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

Gets or sets the collection of link data.

IEnumerable<object> Links { get; set; }

Property Value

IEnumerable<object>

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

IDiagramModel

Nodes

Gets or sets the collection of node data.

IEnumerable<object> Nodes { get; set; }

Property Value

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

Methods

Add a link data to this collection.

void AddLink(object linkdata)

Parameters

linkdata object

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.

This predicate is true if the given link data is in the collection of Links.

bool ContainsLink(object linkdata)

Parameters

linkdata object

Returns

bool

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

bool

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.

Remove a link data from this collection.

void RemoveLink(object linkdata)

Parameters

linkdata object

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.

See Also

StockSharp.Xaml.Diagram.GXDiagram.Model.TreeModel`2.DataCollection
StockSharp.Xaml.Diagram.GXDiagram.Model.GraphModel`2.DataCollection
GraphLinksModel<NodeType, NodeKey, PortKey, LinkType>.DataCollection