CompositionHelper

StockSharp.Diagram

Helfer.

Methoden

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

Fügen Sie DiagramElement Typ hinzu.

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

Fügen Sie DiagramElement Typ hinzu.

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

Filtern Sie die von IsBreak angegebenen.

sockets
Alle Steckdosen.

Rückgabe: Steckdosen aufbrechen.

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

Weiterfahren und beim nächsten Element anhalten.

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

Füllen Sie DiagramElements von GetDiagramElements.

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

Finden Sie alle nicht CompositionDiagramElement Elemente.

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

Finden Sie alle nicht CompositionDiagramElement Elemente.

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)

Holen Sie sich alle Sockets von der angegebenen CompositionDiagramElement.

composition
CompositionDiagramElement

Rückgabe: Alle Steckdosen.

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

Holen Sie sich alle Sockets von der angegebenen DiagramElement.

element
DiagramElement

Rückgabe: Alle Steckdosen.

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

Holen Sie sich alle Diagrammelemente.

Rückgabe: Alle Diagrammelemente.

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

Überprüfen Sie das angegebene CompositionDiagramElement enthält Codeelement.

composition
CompositionDiagramElement

Rückgabe: Prüfergebnis.

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

Überprüfen Sie das angegebene DiagramStrategy enthält Codeelement.

strategy
DiagramStrategy

Rückgabe: Prüfergebnis.

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

Bestimmen Sie, dass der angegebene Wert endgültig ist.

value
DiagramSocketValue

Rückgabe: Betriebsergebnis.

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

Filtern Sie die von IsSelected angegebenen.

sockets
Alle Steckdosen.

Rückgabe: Ausgewählte Steckdosen.

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

Finden Sie die DiagramSocketType nach dem angegebenen Typ.

type
Typ.

Rückgabe: DiagramSocketType

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

Suchen Sie das Element nach dem angegebenen Bezeichner.

composition
CompositionDiagramElement
elementId
DiagramElement Identifikator.
element
Gegründet DiagramElement.

Rückgabe: Betriebsergebnis.

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

Finden Sie den Socket nach den angegebenen Identifikatoren.

composition
CompositionDiagramElement
elementId
DiagramElement Identifikator.
socketId
DiagramSocket Identifikator.
socket
Found Socket.

Rückgabe: Betriebsergebnis.