ICompositionModel

StockSharp.Diagram

CompositionDiagramElement model.

实现: ICloneable<ICompositionModel>, ICloneable

属性

Behavior : object

ICompositionModelBehavior

Elements : IEnumerable<DiagramElement>

Child elements.

HasErrors : bool

To check the composite element for errors in diagram.

IsUndoManagerSuspended : bool

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

Modifiable : bool

Is it possible to edit a composite element diagram.

UndoManager : IUndoManager

IUndoManager

方法

AddElement(DiagramElement, PointF)

Add element.

element
The diagram element.
location
Element position.
FindElementByKey(string) : DiagramElement

Find element by unique key.

key
Key.

返回值: DiagramElement

GetConnectedSocketsFor(DiagramElement, DiagramSocket) : IEnumerable<DiagramSocket>

Get connected sockets.

element
DiagramElement
socket
DiagramSocket

返回值: Connected sockets.

GetDisconnectedSockets() : IEnumerable<ValueTuple<string, DiagramSocket>>

Get disconnected sockets.

返回值: Disconnected sockets.

GetElementKey(DiagramElement) : string

Get element unique key.

element
DiagramElement

返回值: Key.

事件

ElementAdded : Action<DiagramElement>

Child element added event.

ElementRemoved : Action<DiagramElement>

Child element removed event.

ModelChanged : Action

Changed event.