CompositionHelper

StockSharp.Diagram

助道者.

方法

AddDiagramElement
public static void AddDiagramElement(Type elemType)
CompositionHelper.AddDiagramElement(elemType)

Add DiagramElement type.

elemType
DiagramElement type.
AddDiagramElement``1
public static void AddDiagramElement<T>()
CompositionHelper.AddDiagramElement()

Add DiagramElement type.

BreakOnly
public static IEnumerable<DiagramSocket> BreakOnly(IEnumerable<DiagramSocket> sockets)
result = CompositionHelper.BreakOnly(sockets)

Filter the specified by the IsBreak.

sockets
全部插座,请检查access-date=中的日期值 (帮助) All sockets.

返回值: 断开插座。

ContinueAndWaitOnNext
public static void ContinueAndWaitOnNext(DebuggerSyncObject syncObject)
CompositionHelper.ContinueAndWaitOnNext(syncObject)

继续,然后在下一个元素上停下来。

syncObject
DebuggerSyncObject
FillDefault
public static void FillDefault(ICompositionRegistry registry)
CompositionHelper.FillDefault(registry)

Fill DiagramElements by GetDiagramElements.

registry
ICompositionRegistry.
FindAllElements
public static IEnumerable<DiagramElement> FindAllElements(CompositionDiagramElement composition)
result = CompositionHelper.FindAllElements(composition)

Find all non CompositionDiagramElement elements.

FindAllElements``1
public static IEnumerable<T> FindAllElements<T>(CompositionDiagramElement composition)
result = CompositionHelper.FindAllElements(composition)

Find all non CompositionDiagramElement elements.

FindById
public static DiagramSocket FindById(IEnumerable<DiagramSocket> sockets, string id)
result = CompositionHelper.FindById(sockets, id)
sockets
id
GetAllElementsSockets
public static IEnumerable<DiagramSocket> GetAllElementsSockets(CompositionDiagramElement composition)
result = CompositionHelper.GetAllElementsSockets(composition)

从指定的 CompositionDiagramElement 中获取全部套接字 。

composition
CompositionDiagramElement

返回值: 全部插座,请检查access-date=中的日期值 (帮助) All sockets.

GetAllSockets
public static IEnumerable<DiagramSocket> GetAllSockets(DiagramElement element)
result = CompositionHelper.GetAllSockets(element)

从指定的 DiagramElement 中获取全部套接字 。

element
DiagramElement

返回值: 全部插座,请检查access-date=中的日期值 (帮助) All sockets.

GetDiagramElements
public static IEnumerable<DiagramElement> GetDiagramElements()
result = CompositionHelper.GetDiagramElements()

获取所有图表元素 。

返回值: 所有图元素。

HasCode
public static bool HasCode(CompositionDiagramElement composition)
result = CompositionHelper.HasCode(composition)

请检查date=中的日期值 (帮助) CompositionDiagramElement包含代码元素.

composition
CompositionDiagramElement

返回值: 检查结果。

HasCode
public static bool HasCode(DiagramStrategy strategy)
result = CompositionHelper.HasCode(strategy)

请检查date=中的日期值 (帮助) DiagramStrategy包含代码元素.

strategy
DiagramStrategy

返回值: 检查结果。

IsEditable
public static bool IsEditable(DiagramSocketType type)
result = CompositionHelper.IsEditable(type)
type
IsFinal
public static bool? IsFinal(DiagramSocketValue value)
result = CompositionHelper.IsFinal(value)

确定指定的值为最终值 。

value
DiagramSocketValue

返回值: 操作结果。

SelectedOnly
public static IEnumerable<DiagramSocket> SelectedOnly(IEnumerable<DiagramSocket> sockets)
result = CompositionHelper.SelectedOnly(sockets)

Filter the specified by the IsSelected.

sockets
全部插座,请检查access-date=中的日期值 (帮助) All sockets.

返回值: 选中的套接字 。

ToDiagramType
public static DiagramSocketType ToDiagramType(Type type)
result = CompositionHelper.ToDiagramType(type)

以指定的类型查找 DiagramSocketType 。

type
类型。

返回值: DiagramSocketType

TryGetElementById
public static bool TryGetElementById(CompositionDiagramElement composition, Guid elementId, DiagramElement element)
result = CompositionHelper.TryGetElementById(composition, elementId, element)

以指定的标识符查找元素 。

composition
CompositionDiagramElement
elementId
DiagramElement identifier.
element
Found DiagramElement.

返回值: 操作结果。

TryGetSocketById
public static bool TryGetSocketById(CompositionDiagramElement composition, Guid elementId, string socketId, DiagramSocket socket)
result = CompositionHelper.TryGetSocketById(composition, elementId, socketId, socket)

通过指定的标识符查找套接字 。

composition
CompositionDiagramElement
elementId
DiagramElement identifier.
socketId
DiagramSocket identifier.
socket
找到套接字了 找到套接字了 找到套接字了 找到套接字了

返回值: 操作结果。