CompositionHelper
助道者.
方法
public static void AddDiagramElement(Type elemType)
CompositionHelper.AddDiagramElement(elemType)
Add DiagramElement type.
- elemType
- DiagramElement type.
public static void AddDiagramElement<T>()
CompositionHelper.AddDiagramElement()
Add DiagramElement type.
public static IEnumerable<DiagramSocket> BreakOnly(IEnumerable<DiagramSocket> sockets)
result = CompositionHelper.BreakOnly(sockets)
Filter the specified by the IsBreak.
- sockets
- 全部插座,请检查access-date=中的日期值 (帮助) All sockets.
返回值: 断开插座。
public static void ContinueAndWaitOnNext(DebuggerSyncObject syncObject)
CompositionHelper.ContinueAndWaitOnNext(syncObject)
继续,然后在下一个元素上停下来。
- syncObject
- DebuggerSyncObject
public static void FillDefault(ICompositionRegistry registry)
CompositionHelper.FillDefault(registry)
Fill DiagramElements by GetDiagramElements.
- registry
- ICompositionRegistry.
public static IEnumerable<DiagramElement> FindAllElements(CompositionDiagramElement composition)
result = CompositionHelper.FindAllElements(composition)
Find all non CompositionDiagramElement elements.
public static IEnumerable<T> FindAllElements<T>(CompositionDiagramElement composition)
result = CompositionHelper.FindAllElements(composition)
Find all non CompositionDiagramElement elements.
public static DiagramSocket FindById(IEnumerable<DiagramSocket> sockets, string id)
result = CompositionHelper.FindById(sockets, id)
- sockets
- id
public static IEnumerable<DiagramSocket> GetAllElementsSockets(CompositionDiagramElement composition)
result = CompositionHelper.GetAllElementsSockets(composition)
从指定的 CompositionDiagramElement 中获取全部套接字 。
- composition
- CompositionDiagramElement
返回值: 全部插座,请检查access-date=中的日期值 (帮助) All sockets.
public static IEnumerable<DiagramSocket> GetAllSockets(DiagramElement element)
result = CompositionHelper.GetAllSockets(element)
从指定的 DiagramElement 中获取全部套接字 。
- element
- DiagramElement
返回值: 全部插座,请检查access-date=中的日期值 (帮助) All sockets.
public static IEnumerable<DiagramElement> GetDiagramElements()
result = CompositionHelper.GetDiagramElements()
获取所有图表元素 。
返回值: 所有图元素。
public static DiagramSocket GetFromSocket<TNode, TLink>(ICompositionModelLink link, ICompositionModelBehavior<TNode, TLink> behavior)
result = CompositionHelper.GetFromSocket(link, behavior)
从指定链接的套接字获取 。
- link
- ICompositionModelLink
- behavior
- ICompositionModelBehavior
返回值: DiagramSocket
public static DiagramSocket GetToSocket<TNode, TLink>(ICompositionModelLink link, ICompositionModelBehavior<TNode, TLink> behavior)
result = CompositionHelper.GetToSocket(link, behavior)
获取指定链接的套接字 。
- link
- ICompositionModelLink
- behavior
- ICompositionModelBehavior
返回值: DiagramSocket
public static bool HasCode(CompositionDiagramElement composition)
result = CompositionHelper.HasCode(composition)
请检查date=中的日期值 (帮助) CompositionDiagramElement包含代码元素.
- composition
- CompositionDiagramElement
返回值: 检查结果。
public static bool HasCode(DiagramStrategy strategy)
result = CompositionHelper.HasCode(strategy)
请检查date=中的日期值 (帮助) DiagramStrategy包含代码元素.
- strategy
- DiagramStrategy
返回值: 检查结果。
public static bool IsEditable(DiagramSocketType type)
result = CompositionHelper.IsEditable(type)
- type
public static bool? IsFinal(DiagramSocketValue value)
result = CompositionHelper.IsFinal(value)
确定指定的值为最终值 。
- value
- DiagramSocketValue
返回值: 操作结果。
public static IEnumerable<DiagramSocket> SelectedOnly(IEnumerable<DiagramSocket> sockets)
result = CompositionHelper.SelectedOnly(sockets)
Filter the specified by the IsSelected.
- sockets
- 全部插座,请检查access-date=中的日期值 (帮助) All sockets.
返回值: 选中的套接字 。
public static DiagramSocketType ToDiagramType(Type type)
result = CompositionHelper.ToDiagramType(type)
以指定的类型查找 DiagramSocketType 。
- type
- 类型。
返回值: DiagramSocketType
public static bool TryGetElementById(CompositionDiagramElement composition, Guid elementId, DiagramElement element)
result = CompositionHelper.TryGetElementById(composition, elementId, element)
以指定的标识符查找元素 。
- composition
- CompositionDiagramElement
- elementId
- DiagramElement identifier.
- element
- Found DiagramElement.
返回值: 操作结果。
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
- 找到套接字了 找到套接字了 找到套接字了 找到套接字了
返回值: 操作结果。