Blazor

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

    Show / Hide Table of Contents

    Class CancelOffset

    Represents the position of the cancel port.

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