Interface ICompositionModelBehavior<TNode, TLink>
- Namespace
- StockSharp.Diagram
- Assembly
- StockSharp.Diagram.Core.dll
ICompositionModel behavior.
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
Links
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
Nodes
Nodes.
IEnumerable<TNode> Nodes { get; set; }
Property Value
- IEnumerable<TNode>
Parent
Parent.
ICompositionModel Parent { get; set; }
Property Value
UndoManager
IUndoManager UndoManager { get; set; }
Property Value
Methods
AddLink(TNode, string, TNode, string)
Add link.
TLink AddLink(TNode from, string fromPort, TNode to, string toPort)
Parameters
Returns
- TLink
TLink
AddLink(TLink)
Add link.
void AddLink(TLink link)
Parameters
link
TLinkTLink
AddNode(TNode)
Add node.
void AddNode(TNode node)
Parameters
node
TNodeTNode
CommitTransaction(string)
Commit transaction.
bool CommitTransaction(string name)
Parameters
name
stringOperation name.
Returns
- bool
Operation result.
FindNodeByKey(string)
Find node by key.
TNode FindNodeByKey(string key)
Parameters
key
stringKey.
Returns
- TNode
TNode
GetLinksForNode(TNode)
Get all links for the specified node.
IEnumerable<TLink> GetLinksForNode(TNode node)
Parameters
node
TNodeTNode
Returns
- IEnumerable<TLink>
Links.
RaiseCommited(string, TNode, IUndoableEdit)
Raise commited event.
void RaiseCommited(string name, TNode node, IUndoableEdit op)
Parameters
name
stringOpeation name.
node
TNodeTNode
op
IUndoableEdit
RaiseLinksRemoved(TNode)
Raise links removed event.
void RaiseLinksRemoved(TNode node)
Parameters
node
TNodeTNode
RaiseSocketAdded(TNode)
Raise socket added event.
void RaiseSocketAdded(TNode node)
Parameters
node
TNodeTNode
RemoveLink(TNode, string, TNode, string)
Remove link.
void RemoveLink(TNode from, string fromPort, TNode to, string toPort)
Parameters
RemoveLink(TLink)
Remove link.
void RemoveLink(TLink link)
Parameters
link
TLinkTLink
RemoveNode(TNode)
Remove node.
void RemoveNode(TNode node)
Parameters
node
TNodeTNode
RollbackTransaction()
Rollback transaction.
bool RollbackTransaction()
Returns
- bool
Operation result.
StartTransaction(string)
Start transaction.
bool StartTransaction(string name)
Parameters
name
stringOperation 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