Blazor

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

    Show / Hide Table of Contents

    Class ConnectionShapes

    Specifies the type of BPMN connection to be drawn.

    Inheritance
    System.Object
    ConnectionShapes
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class ConnectionShapes : Enum
    Remarks
    To know more about using connection shapes, refer to these links
    1. Uml Diagram Shapes
    2. Bpmn Shapes
    To apply UmlClassifier connection shapes, use the below code.
    Examples
    <SfDiagram Height="600px" Connectors="@ConnectorCollection">
    </SfDiagram>
    @code {
       //Defines diagram's connector collection
       public ObservableCollection<DiagramConnector> ConnectorCollection { get; set; }
       protected override void OnInitialized()
       {
           ConnectorCollection = new ObservableCollection<DiagramConnector>();
           DiagramConnector Connector = new DiagramConnector()
           {
               Id = "Connector1",
               Type = Segments.Straight,
               //Define connector start and end points
               SourcePoint = new ConnectorSourcePoint() { X = 100, Y = 100 },
               TargetPoint = new ConnectorTargetPoint() { X = 300, Y = 300 },
               Shape = new DiagramConnectorShape()
               {
                   Type = ConnectionShapes.UmlClassifier,
                   Relationship = ClassifierShape.Association,
                   //Define type of association
                   Association = BpmnAssociationFlows.BiDirectional
               }
           };
           //Add connector
           ConnectorCollection.Add(Connector).
       }
    }

    Fields

    Bpmn

    Specifies the connection type as a BPMN connector.

    Declaration
    public const ConnectionShapes Bpmn
    Field Value
    Type Description
    ConnectionShapes

    None

    Specifies the connection type as a normal connector.

    Declaration
    public const ConnectionShapes None
    Field Value
    Type Description
    ConnectionShapes

    UmlActivity

    Specifies the connection type as a UML activity type connector.

    Declaration
    public const ConnectionShapes UmlActivity
    Field Value
    Type Description
    ConnectionShapes

    UmlClassifier

    Specifies the connection type as a UML classifier type connector.

    Declaration
    public const ConnectionShapes UmlClassifier
    Field Value
    Type Description
    ConnectionShapes

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved