Class BpmnSubEventOffset
Represents the position of the sub-event.
Inherited Members
Namespace: Syncfusion.Blazor.Diagrams
Assembly: Syncfusion.Blazor.dll
Syntax
public class BpmnSubEventOffset : NodePortOffset
Remarks
BpmnSubEventOffset is used to set the fraction relative to the parent that represents the position of the BpmnSubEvent. Fraction value ranges from 0 to 1. |
1. When x= 0 and y = 0, then the event will be position at the top left corner of the node. |
2. When x= 0.5 and y = 0.5, then the event will be position at the center of the node. |
3. When x= 1 and y = 1, then the event will be position at the bottom right corner of the node. |
Examples
Shape = new DiagramShape()
{
Type = Shapes.Bpmn, BpmnShape = BpmnShapes.Activity,
//Sets activity to SubProcess
Activity=new DiagramBpmnActivity()
{
Activity = BpmnActivities.SubProcess,
//Sets the collapsed to true and type to Event
SubProcess = new DiagramBpmnSubProcess()
{
Collapsed = true,
Type = BpmnSubProcessTypes.Event,
//Sets event to Start and trigger to Message
Events = new ObservableCollection<DiagramBpmnSubEvent>()
{
new DiagramBpmnSubEvent()
{
Event = BpmnEvents.Start, Trigger = BpmnTriggers.Message, Offset = new BpmnSubEventOffset { X= 0, Y=0}
}
}
}
}
}
Constructors
BpmnSubEventOffset()
Represents the position of the sub-event.
Declaration
public BpmnSubEventOffset()