Class CancelOffset
Represents the position of the cancel port.
Inherited Members
Namespace: Syncfusion.Blazor.Diagrams
Assembly: Syncfusion.Blazor.dll
Syntax
public class CancelOffset : DiagramPoint
Remarks
CancelOffset is used to set the fraction relative to the parent that represents the position of the Cancel port. Fraction value ranges from 0 to 1. |
1. When x= 0 and y = 0, then the cancel port will be position at the top left corner of the node. |
2. When x= 0.5 and y = 0.5, then the cancel port will be position at the center of the node. |
3. When x= 1 and y = 1, then the cancel port will be position at the bottom right corner of the node. |
Examples
Shape = new DiagramShape()
{
Type = Shapes.Bpmn,
BpmnShape = BpmnShapes.Activity,
//Sets the activity to subprocess
Activity = new DiagramBpmnActivity()
{
Activity = BpmnActivities.SubProcess,
//Sets collapsed to true and type to Transaction
SubProcess = new DiagramBpmnSubProcess()
{
//Collapsed = true,
Type = BpmnSubProcessTypes.Transaction,
//Sets offset and visible for cancel
Transaction = new DiagramBpmnTransactionSubProcess()
{
Cancel = new CancelSubEvent() { Visible = true, Offset = new BpmnSubEventOffset() { X = 0, Y = 0 } },
}
},
}
}
Constructors
CancelOffset()
Represents the position of the cancel port.
Declaration
public CancelOffset()