Table of Contents

Interface ICompositionModelBehavior<TNode, TLink>

Namespace
StockSharp.Diagram
Assembly
StockSharp.Diagram.Core.dll
public interface ICompositionModelBehavior<TNode, TLink> : ICloneable where TNode : ICompositionModelNode where TLink : ICompositionModelLink

Type Parameters

TNode

Node type.

TLink

Link type.

Inherited Members
Extension Methods

Properties

IsUndoManagerSuspended

Undo manager is suspended if this property is set to true.

bool IsUndoManagerSuspended { get; set; }

Property Value

bool

Links.

IEnumerable<TLink> Links { get; set; }

Property Value

IEnumerable<TLink>

Modifiable

Is it possible to edit a composite element diagram.

bool Modifiable { get; set; }

Property Value

bool

Nodes

Nodes.

IEnumerable<TNode> Nodes { get; set; }

Property Value

IEnumerable<TNode>

Parent

Parent.

ICompositionModel Parent { get; set; }

Property Value

ICompositionModel

UndoManager

IUndoManager UndoManager { get; set; }

Property Value

IUndoManager

Methods

Add link.

TLink AddLink(TNode from, string fromPort, TNode to, string toPort)

Parameters

from TNode

From node.

fromPort string

FromPort

to TNode

To node.

toPort string

ToPort

Returns

TLink

TLink

Add link.

void AddLink(TLink link)

Parameters

link TLink

TLink

AddNode(TNode)

Add node.

void AddNode(TNode node)

Parameters

node TNode

TNode

CommitTransaction(string)

Commit transaction.

bool CommitTransaction(string name)

Parameters

name string

Operation name.

Returns

bool

Operation result.

FindNodeByKey(string)

Find node by key.

TNode FindNodeByKey(string key)

Parameters

key string

Key.

Returns

TNode

TNode

GetLinksForNode(TNode)

Get all links for the specified node.

IEnumerable<TLink> GetLinksForNode(TNode node)

Parameters

node TNode

TNode

Returns

IEnumerable<TLink>

Links.

RaiseCommited(string, TNode, IUndoableEdit)

Raise commited event.

void RaiseCommited(string name, TNode node, IUndoableEdit op)

Parameters

name string

Opeation name.

node TNode

TNode

op IUndoableEdit

IUndoableEdit

RaiseLinksRemoved(TNode)

Raise links removed event.

void RaiseLinksRemoved(TNode node)

Parameters

node TNode

TNode

RaiseSocketAdded(TNode)

Raise socket added event.

void RaiseSocketAdded(TNode node)

Parameters

node TNode

TNode

Remove link.

void RemoveLink(TNode from, string fromPort, TNode to, string toPort)

Parameters

from TNode

From node.

fromPort string

FromPort

to TNode

To node.

toPort string

ToPort

Remove link.

void RemoveLink(TLink link)

Parameters

link TLink

TLink

RemoveNode(TNode)

Remove node.

void RemoveNode(TNode node)

Parameters

node TNode

TNode

RollbackTransaction()

Rollback transaction.

bool RollbackTransaction()

Returns

bool

Operation result.

StartTransaction(string)

Start transaction.

bool StartTransaction(string name)

Parameters

name string

Operation name.

Returns

bool

Operation result.

Events

BehaviorChanged

Changed event.

event Action<(ModelChange change, object data, string propName, object oldValue, object oldParam, object newValue, object newParam)> BehaviorChanged

Event Type

Action<(ModelChange change, object data, string propName, object oldValue, object oldParam, object newValue, object newParam)>