Class CompositionHelper
- Namespace
- StockSharp.Diagram
- Assembly
- StockSharp.Diagram.Core.dll
Helpers.
public static class CompositionHelper
- Inheritance
-
CompositionHelper
- Inherited Members
Methods
AddDiagramElement(Type)
Add DiagramElement type.
public static void AddDiagramElement(Type elemType)
Parameters
elemType
TypeDiagramElement type.
AddDiagramElement<T>()
Add DiagramElement type.
public static void AddDiagramElement<T>() where T : DiagramElement
Type Parameters
T
DiagramElement type.
ContinueAndWaitOnNext(DebuggerSyncObject)
To continue and stop at the next element.
public static void ContinueAndWaitOnNext(this DebuggerSyncObject syncObject)
Parameters
syncObject
DebuggerSyncObject
FillDefault(ICompositionRegistry)
Fill DiagramElements by GetDiagramElements().
public static void FillDefault(this ICompositionRegistry registry)
Parameters
registry
ICompositionRegistry
FindById(IEnumerable<DiagramSocket>, string)
public static DiagramSocket FindById(this IEnumerable<DiagramSocket> sockets, string id)
Parameters
sockets
IEnumerable<DiagramSocket>id
string
Returns
GetDiagramElements()
Get all diagram elements.
public static IEnumerable<DiagramElement> GetDiagramElements()
Returns
- IEnumerable<DiagramElement>
All diagram elements.
GetFromSocket<TNode, TLink>(ICompositionModelLink, ICompositionModelBehavior<TNode, TLink>)
Get From socket for the specified link.
public static DiagramSocket GetFromSocket<TNode, TLink>(this ICompositionModelLink link, ICompositionModelBehavior<TNode, TLink> behavior) where TNode : ICompositionModelNode where TLink : ICompositionModelLink
Parameters
link
ICompositionModelLinkbehavior
ICompositionModelBehavior<TNode, TLink>
Returns
Type Parameters
TNode
TLink
GetToSocket<TNode, TLink>(ICompositionModelLink, ICompositionModelBehavior<TNode, TLink>)
Get To socket for the specified link.
public static DiagramSocket GetToSocket<TNode, TLink>(this ICompositionModelLink link, ICompositionModelBehavior<TNode, TLink> behavior) where TNode : ICompositionModelNode where TLink : ICompositionModelLink
Parameters
link
ICompositionModelLinkbehavior
ICompositionModelBehavior<TNode, TLink>
Returns
Type Parameters
TNode
TLink
HasCode(CompositionDiagramElement)
Check the specified CompositionDiagramElement contains code element.
public static bool HasCode(this CompositionDiagramElement composition)
Parameters
composition
CompositionDiagramElement
Returns
- bool
Check result.
HasCode(DiagramStrategy)
Check the specified DiagramStrategy contains code element.
public static bool HasCode(this DiagramStrategy strategy)
Parameters
strategy
DiagramStrategy
Returns
- bool
Check result.
IsBrowsable(SchemeTypes)
Determine the specified type is browsable.
public static bool IsBrowsable(this SchemeTypes type)
Parameters
type
SchemeTypesScheme type.
Returns
- bool
Check result.
IsEditable(DiagramSocketType)
public static bool IsEditable(this DiagramSocketType type)
Parameters
type
DiagramSocketType
Returns
IsFinal(DiagramSocketValue)
Determine the specified value is final.
public static bool? IsFinal(this DiagramSocketValue value)
Parameters
Returns
- bool?
Operation result.