Blazor

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

    Show / Hide Table of Contents

    Class FailureOffset

    Represents the position of the failure port.

    Inheritance
    System.Object
    SfDiagramBase
    DiagramPoint
    FailureOffset
    Inherited Members
    DiagramPoint.X
    DiagramPoint.Y
    SfDiagramBase.UpdateCollection(IList, Boolean)
    SfDiagramBase.RandomString(Int32)
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class FailureOffset : DiagramPoint
    Remarks
    FailureOffset is used to set the fraction relative to the parent that represents the position of the Failure port. Fraction value ranges from 0 to 1.
    1. When x= 0 and y = 0, then the failure port will be position at the top left corner of the node.
    2. When x= 0.5 and y = 0.5, then the failure port will be position at the center of the node.
    3. When x= 1 and y = 1, then the failure 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 for cancel
          Transaction = new DiagramBpmnTransactionSubProcess()
          {
            Failure = new FailureSubEvent() { Offset = new BpmnSubEventOffset() { X = 0, Y = 0 } }
          }
        },
      }
     }

    Constructors

    FailureOffset()

    Represents the position of the failure port.

    Declaration
    public FailureOffset()
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved