Class DiagramBpmnGateway
Represents to control the flow of a process and it is represented as a diamond shape.
Namespace: Syncfusion.Blazor.Diagrams
Assembly: Syncfusion.Blazor.dll
Syntax
public class DiagramBpmnGateway : SfDiagramBase
Remarks
To create a gateway, the shape property of the node should be set to “Gateway” and the Gateway property can be set with any of the appropriate gateways. |
Examples
<SfDiagram Height="600px" Nodes="@NodeCollection">
</SfDiagram>
@code{
//Initialize the node collection with node
ObservableCollection<DiagramNode> NodeCollection = new ObservableCollection<DiagramNode>()
{
new DiagramNode()
{
//Position of the node
OffsetX = 100, OffsetY = 100,
//Size of the node
Width = 100, Height = 100,
//Unique Id of the node
Id = "node1",
Shape = new DiagramShape()
{
//Sets type to Bpmn and shape to Gateway
Type = Shapes.Bpmn, BpmnShape = BpmnShapes.Gateway,
//Sets type of the gateway to None
Gateway = new DiagramBpmnGateway(){Type = BpmnGateways.None}
}
}
};
}
Constructors
DiagramBpmnGateway()
Represents to control the flow of a process and it is represented as a diamond shape.
Declaration
public DiagramBpmnGateway()
Properties
Type
Specifies the type of BpmnGateway. By default, the Gateway will be set to None.
Declaration
public BpmnGateways Type { get; set; }
Property Value
Type | Description |
---|---|
BpmnGateways |