Table of Contents

Interface ICompositionModel

Namespace
StockSharp.Diagram
Assembly
StockSharp.Diagram.Core.dll
public interface ICompositionModel : ICloneable<ICompositionModel>, ICloneable
Inherited Members
Extension Methods

Properties

Behavior

object Behavior { get; }

Property Value

object

Elements

Child elements.

IEnumerable<DiagramElement> Elements { get; }

Property Value

IEnumerable<DiagramElement>

HasErrors

To check the composite element for errors in diagram.

bool HasErrors { get; }

Property Value

bool

IsUndoManagerSuspended

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

bool IsUndoManagerSuspended { get; set; }

Property Value

bool

Modifiable

Is it possible to edit a composite element diagram.

bool Modifiable { get; set; }

Property Value

bool

UndoManager

IUndoManager UndoManager { get; set; }

Property Value

IUndoManager

Methods

AddElement(DiagramElement, PointF)

Add element.

void AddElement(DiagramElement element, PointF location = default)

Parameters

element DiagramElement

The diagram element.

location PointF

Element position.

FindElementByKey(string)

Find element by unique key.

DiagramElement FindElementByKey(string key)

Parameters

key string

Key.

Returns

DiagramElement

DiagramElement

GetConnectedSocketsFor(DiagramElement, DiagramSocket)

Get connected sockets.

IEnumerable<DiagramSocket> GetConnectedSocketsFor(DiagramElement element, DiagramSocket socket)

Parameters

element DiagramElement

DiagramElement

socket DiagramSocket

DiagramSocket

Returns

IEnumerable<DiagramSocket>

Connected sockets.

GetDisconnectedSockets()

Get disconnected sockets.

IEnumerable<(string nodeKey, DiagramSocket socket)> GetDisconnectedSockets()

Returns

IEnumerable<(string nodeKey, DiagramSocket socket)>

Disconnected sockets.

GetElementKey(DiagramElement)

Get element unique key.

string GetElementKey(DiagramElement element)

Parameters

element DiagramElement

DiagramElement

Returns

string

Key.

Events

ElementAdded

Child element added event.

event Action<DiagramElement> ElementAdded

Event Type

Action<DiagramElement>

ElementRemoved

Child element removed event.

event Action<DiagramElement> ElementRemoved

Event Type

Action<DiagramElement>

ModelChanged

Changed event.

event Action ModelChanged

Event Type

Action