CopyDictionary

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

This nested class is used during copying to hold a mapping of original nodes to newly copied nodes and original links to newly copied links.

Implementa: ICopyDictionary

Propiedades

Copies : DataCollection<T, T, T, T>

Gets the collection of copied nodes and copied links as a DataCollection.

DestinationModel : GraphLinksModel<T, T, T, T>

Gets or sets the destination model for the copying operation.

SourceCollection : DataCollection<T, T, T, T>

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

SourceModel : GraphLinksModel<T, T, T, T>

Gets or sets the source model for the copying operation.

Métodos

AddCopiedNode(T, T)

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

oldnode
a node data in the source collection
newnode
a copied node data, or null to indicate that there is no copied node data for a given source node data
ContainsSourceNode(T) : bool

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

oldnode
FindCopiedNode(T) : T

Look up the copied node for a given source node.

oldnode
a source node data

Devuelve: the copied node data

RemoveSourceNode(T)

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

srcnodedata
a node data in the source collection