Table of Contents

Interface ICopyDictionary

Namespace
StockSharp.Xaml.Diagram.GXDiagram.Model
Assembly
StockSharp.Xaml.Diagram.dll

A dictionary of data representing a set of nodes and links and their corresponding copies, used during the copying process.

public interface ICopyDictionary
Extension Methods

Properties

Copies

Gets the collection of copied nodes and copied links as an IDataCollection.

IDataCollection Copies { get; }

Property Value

IDataCollection

DestinationModel

Gets or sets the destination model for the copying operation.

IDiagramModel DestinationModel { get; set; }

Property Value

IDiagramModel

SourceCollection

Gets or sets the source collection of data to be copied for the copying operation.

IDataCollection SourceCollection { get; set; }

Property Value

IDataCollection

SourceModel

Gets or sets the source model for the copying operation.

IDiagramModel SourceModel { get; set; }

Property Value

IDiagramModel

Methods

Declare the mapping of a source link data to a copied link data.

void AddCopiedLink(object srclinkdata, object dstlinkdata)

Parameters

srclinkdata object
dstlinkdata 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.

AddCopiedNode(object, object)

Declare the mapping of a source node data to a copied node data.

void AddCopiedNode(object srcnodedata, object dstnodedata)

Parameters

srcnodedata object
dstnodedata 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 source collection.

bool ContainsSourceLink(object srclinkdata)

Parameters

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

ContainsSourceNode(object)

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

bool ContainsSourceNode(object srcnodedata)

Parameters

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

Look up the copied link for a given source link.

object FindCopiedLink(object srclinkdata)

Parameters

srclinkdata object

Returns

object

This will always return null 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.

FindCopiedNode(object)

Look up the copied node for a given source node.

object FindCopiedNode(object srcnodedata)

Parameters

srcnodedata object

Returns

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.

Remove any association between a source link data and any copied link data.

void RemoveSourceLink(object srclinkdata)

Parameters

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

RemoveSourceNode(object)

Remove any association between a source node data and any copied node data.

void RemoveSourceNode(object srcnodedata)

Parameters

srcnodedata 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.CopyDictionary
StockSharp.Xaml.Diagram.GXDiagram.Model.GraphModel`2.CopyDictionary
GraphLinksModel<NodeType, NodeKey, PortKey, LinkType>.CopyDictionary