Blazor

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

    Show / Hide Table of Contents

    Class DiagramConnectorShape

    Defines the shape of the connector.

    Inheritance
    System.Object
    SfDiagramBase
    DiagramConnectorShape
    Inherited Members
    SfDiagramBase.UpdateCollection(IList, Boolean)
    SfDiagramBase.RandomString(Int32)
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class DiagramConnectorShape : SfDiagramBase
    Examples
      
    <SfDiagram Connectors="@ConnectorCollection">
    </SfDiagram>
    @code
    {
     public ObservableCollection<DiagramConnector> ConnectorCollection = new ObservableCollection<DiagramConnector>();
     protected override void OnInitialized()
     {
        DiagramConnector DiagramConnector = new DiagramConnector()
        {
          SourcePoint = new ConnectorSourcePoint() { X = 100, Y = 200 },
          TargetPoint = new ConnectorTargetPoint() { X = 300, Y = 200 },
          //Sets the type to Bpmn, flow to Association and association to bidirectional
          Shape = new DiagramConnectorShape()
          {
            Type = ConnectionShapes.Bpmn,
            BpmnFlow = BpmnFlows.Association,
            Association = BpmnAssociationFlows.Directional
          }
        };
       ConnectorCollection.Add(DiagramConnector);
     }

    Constructors

    DiagramConnectorShape()

    Defines the shape of the connector.

    Declaration
    public DiagramConnectorShape()

    Properties

    Association

    Sets the BPMN Flow Type as Association.

    Declaration
    public BpmnAssociationFlows Association { get; set; }
    Property Value
    Type Description
    BpmnAssociationFlows
    Remarks

    The diagram connector shape can be set to the association by setting the BPMNFlow property to the association. Types of the association are Directional, BiDirectional, Default.

    Examples
      
    DiagramConnector Connector = new DiagramConnector()
    {
       //Sets the type to Bpmn, flow to Association and association to bidirectional
       Shape=new DiagramConnectorShape()
       {
        Type = ConnectionShapes.Bpmn,
        BpmnFlow = BpmnFlows.Association,
        Association = BpmnAssociationFlows.BiDirectional
        }
    }

    AssociationType

    Defines the type of connector shape.

    Declaration
    public AssociationFlow AssociationType { get; set; }
    Property Value
    Type Description
    AssociationFlow

    BpmnFlow

    It defines whether the connector can act as a normal connector or BPMN flow.

    Declaration
    public BpmnFlows BpmnFlow { get; set; }
    Property Value
    Type Description
    BpmnFlows
    Remarks

    The BPMNFlow can be set to Association, Sequence, or Message.

    ExceptionFlowHeight

    Defines the height of exception flow.

    Declaration
    public double ExceptionFlowHeight { get; set; }
    Property Value
    Type Description
    System.Double
    Remarks

    By default, the value of ExceptionHeightFlow is 50.

    Message

    The message flow represents the flow of messages between two points.

    Declaration
    public BpmnMessageFlows Message { get; set; }
    Property Value
    Type Description
    BpmnMessageFlows
    Remarks

    The BPMN Flow Type can be set to Message. The types of message flow are Initiating, NonInitiating, and Default.

    Examples
      
    DiagramConnector Connector = new DiagramConnector()
    {
     // Start and endpoint of the connector
     SourcePoint=new ConnectorSourcePoint() { X = 100,Y = 200},
     TargetPoint=new ConnectorTargetPoint() { X = 300,Y = 200},
     //Sets type to Bpmn, flow to Message, and message to InitiatingMessage
     Shape=new DiagramConnectorShape()
     {
        Type = ConnectionShapes.Bpmn,
        BpmnFlow = BpmnFlows.Message,
        Message = BpmnMessageFlows.InitiatingMessage
      }
    }

    Multiplicity

    Defines the type of classifier multiplicity

    Declaration
    public DiagramClassifierMultiplicity Multiplicity { get; set; }
    Property Value
    Type Description
    DiagramClassifierMultiplicity

    Relationship

    Represents the relationship for UML Classifier

    Declaration
    public ClassifierShape Relationship { get; set; }
    Property Value
    Type Description
    ClassifierShape

    Sequence

    The sequence flow represents a solid graphic flow segment

    Declaration
    public BpmnSequenceFlows Sequence { get; set; }
    Property Value
    Type Description
    BpmnSequenceFlows
    Remarks

    This sets the BPMN Flow Type as Sequence. The types of sequences are Normal, Conditional, and Default.

    Examples
      
    DiagramConnector Connector = new DiagramConnector()
    {
       //Sets type to Bpmn, flow to Sequence, and sequence to Conditional
       Shape=new DiagramConnectorShape()
       {
         Type = ConnectionShapes.Bpmn,
         BpmnFlow = BpmnFlows.Sequence,
         Sequence = BpmnSequenceFlows.Default
        }
     }

    Type

    Defines the type of connector shape.

    Declaration
    public ConnectionShapes Type { get; set; }
    Property Value
    Type Description
    ConnectionShapes
    Remarks

    The connector shape can be set to None, BPMN, UMLActivity or UMLClassifier.

    Examples
      
    DiagramConnector Connector = new DiagramConnector()
    {
     //Unique Id of the connector
     Id="connector1",
     // Start and end point of the connector
     SourcePoint=new ConnectorSourcePoint() { X = 100,Y = 200},
     TargetPoint=new ConnectorTargetPoint() { X = 300,Y = 200},
     //Sets type to Bpmn
     Shape=new DiagramConnectorShape()
      {
       Type = ConnectionShapes.Bpmn,
      }
     }

    UmlActivityFlow

    Defines the type of connector shape as UMLActivity.

    Declaration
    public UmlActivityFlows UmlActivityFlow { get; set; }
    Property Value
    Type Description
    UmlActivityFlows
    Remarks

    The UMLActivityFlow can be set to either Basic or Action.

    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved