Blazor

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class BpmnSubEventOffset - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class BpmnSubEventOffset

    Represents the position of the sub-event.

    Inheritance
    System.Object
    SfDiagramBase
    NodePortOffset
    BpmnSubEventOffset
    Inherited Members
    NodePortOffset.X
    NodePortOffset.Y
    SfDiagramBase.UpdateCollection(IList, Boolean)
    SfDiagramBase.RandomString(Int32)
    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()
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved