CompositionHelper

StockSharp.Diagram

Помощники.

Методы

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

Добавьте тип DiagramElement.

elemType
Тип DiagramElement.
AddDiagramElement``1
public static void AddDiagramElement<T>()
CompositionHelper.AddDiagramElement()

Добавьте тип DiagramElement.

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

Фильтровать указанные IsBreak.

sockets
Все розетки.

Возвращает: Ломайте розетки.

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

Чтобы продолжить и остановиться на следующем элементе.

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

Заполните DiagramElements на GetDiagramElements.

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

Найдите все элементы, кроме CompositionDiagramElement.

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

Найдите все элементы, кроме CompositionDiagramElement.

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

Возвращает: Все розетки.

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

Получить все сокеты из указанного DiagramElement.

element
DiagramElement

Возвращает: Все розетки.

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

Получите все элементы диаграммы.

Возвращает: Все элементы диаграммы.

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

Убедитесь, что указанный CompositionDiagramElement содержит элемент кода.

composition
CompositionDiagramElement

Возвращает: Проверьте результат.

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

Убедитесь, что указанный 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)

Фильтровать указанные IsSelected.

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.
element
Нашёл 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.
socketId
идентификатор DiagramSocket.
socket
Нашел розетку.

Возвращает: Результат операции.