Interface ICompositionModel
- Namespace
- StockSharp.Diagram
- Assembly
- StockSharp.Diagram.Core.dll
CompositionDiagramElement model.
public interface ICompositionModel : ICloneable<ICompositionModel>, ICloneable
- Inherited Members
- Extension Methods
Properties
Behavior
object Behavior { get; }
Property Value
Elements
Child elements.
IEnumerable<DiagramElement> Elements { get; }
Property Value
HasErrors
To check the composite element for errors in diagram.
bool HasErrors { get; }
Property Value
IsUndoManagerSuspended
Undo manager is suspended if this property is set to true.
bool IsUndoManagerSuspended { get; set; }
Property Value
Modifiable
Is it possible to edit a composite element diagram.
bool Modifiable { get; set; }
Property Value
UndoManager
IUndoManager UndoManager { get; set; }
Property Value
Methods
AddElement(DiagramElement, PointF)
Add element.
void AddElement(DiagramElement element, PointF location = default)
Parameters
element
DiagramElementThe diagram element.
location
PointFElement position.
FindElementByKey(string)
Find element by unique key.
DiagramElement FindElementByKey(string key)
Parameters
key
stringKey.
Returns
GetConnectedSocketsFor(DiagramElement, DiagramSocket)
Get connected sockets.
IEnumerable<DiagramSocket> GetConnectedSocketsFor(DiagramElement element, DiagramSocket socket)
Parameters
element
DiagramElementsocket
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
Returns
- string
Key.
Events
ElementAdded
Child element added event.
event Action<DiagramElement> ElementAdded
Event Type
ElementRemoved
Child element removed event.
event Action<DiagramElement> ElementRemoved
Event Type
ModelChanged
Changed event.
event Action ModelChanged