Blazor

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DiagramClassifierMultiplicity

    Show / Hide Table of Contents

    Class DiagramClassifierMultiplicity

    Represents the behavior of the UMLActivity Classifier Multiplicity connection defaults.

    Inheritance
    System.Object
    SfDiagramBase
    DiagramClassifierMultiplicity
    Inherited Members
    SfDiagramBase.UpdateCollection(IList, Boolean)
    SfDiagramBase.RandomString(Int32)
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class DiagramClassifierMultiplicity : SfDiagramBase
    Remarks
    The Multiplicity property in UML allows you to specify a large number of elements or some collection of elements. By default, the multiplicity will be considered as OneToOne. The type of multiplicity is as follows.
    1. OneToOne.
    2. ManyToOne.
    3. OneToMany.
    4. ManyToMany.
    Examples
    <SfDiagram Height="600px" Nodes="@NodeCollection">
    </SfDiagram>
    @code{
           //...
         Shape = new DiagramConnectorShape()
         {
             Type = ConnectionShapes.UmlClassifier,
             //Set a relationship for connector
             Relationship = ClassifierShape.Dependency,
             Multiplicity = new DiagramClassifierMultiplicity()
              {
                //Set multiplicity type
                Type = Multiplicity.OneToMany,
                //Set source label to connector
                Source = new SourceMultiplicityLabel()
                 {
                   Optional = true,
                   LowerBounds = "89",
                   UpperBounds = "67"
                  },
                  //Set target label to a connector
                  Target = new TargetMultiplicityLabel()
                  {
                    Optional = true,
                    LowerBounds = "78",
                    UpperBounds = "90"
                   }
              }
          },
         //...
      }

    Constructors

    DiagramClassifierMultiplicity()

    Represents the behavior of the UMLActivity Classifier Multiplicity connection defaults.

    Declaration
    public DiagramClassifierMultiplicity()

    Properties

    Source

    Specifies the source label to a connector.

    Declaration
    public SourceMultiplicityLabel Source { get; set; }
    Property Value
    Type Description
    SourceMultiplicityLabel

    Target

    Specifies the target label to a connector.

    Declaration
    public TargetMultiplicityLabel Target { get; set; }
    Property Value
    Type Description
    TargetMultiplicityLabel

    Type

    Specifies the type of Classifier multiplicity. By default, it is set to OneToOne.

    Declaration
    public Multiplicity Type { get; set; }
    Property Value
    Type Description
    Multiplicity
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved