Blazor

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

    Show / Hide Table of Contents

    Class ClassifierShape

    Defines the type of UML shapes to be drawn.

    Inheritance
    System.Object
    ClassifierShape
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class ClassifierShape : Enum
    Remarks
    To know more about using Classifier shape, refer to these links
    1. ClassifierShape
    To apply classifier class shape, use the below code.
    Examples
    <SfDiagram Height="600px" Nodes="@NodeCollection">
    </SfDiagram>
    @code{
       //Defines diagram's Node collection
       public ObservableCollection<DiagramNode> NodeCollection { get; set; }
       protected override void OnInitialized()
       {
           NodeCollection = new ObservableCollection<DiagramNode>();
           DiagramNode Node = new DiagramNode()
           {
               Id = "Patient",
               OffsetX = 200,
               OffsetY = 200,
               Shape = new DiagramShape()
               {
                   Type = Syncfusion.Blazor.Diagrams.Shapes.UmlClassifier,
                   Classifier = ClassifierShape.Class,
                   //Define class object
                   ClassShape = new DiagramUmlClass()
                   {
                       Name = "Patient",
                       //Define class attributes
                       Attributes = new ObservableCollection<DiagramUmlClassAttribute>()
                   {
                           new DiagramUmlClassAttribute() { Name = "accepted", Type = "Date" }
                       },
                       //Define class methods
                       Methods = new ObservableCollection<DiagramUmlClassMethod>()
                   {
                           new DiagramUmlClassMethod()
                           {
                               Name = "getHistory", Type = "getHistory"
                           }
                       }
                   }
               }
           };
           //Add node
           NodeCollection.Add(Node);
       }
    }

    Fields

    Aggregation

    It indicates the scope is a package. Aggregation is a binary association between a property and one or more composite objects which group a set of instances

    Declaration
    public const ClassifierShape Aggregation
    Field Value
    Type Description
    ClassifierShape

    Association

    It indicates the scope is private. Association is a set of links that connects elements of a UML model

    Declaration
    public const ClassifierShape Association
    Field Value
    Type Description
    ClassifierShape

    Class

    It indicates the scope is protected. A class describes a set of objects that shares the same specifications of features, constraints, and semantics.

    Declaration
    public const ClassifierShape Class
    Field Value
    Type Description
    ClassifierShape

    Composition

    It indicates the scope is public. The composition is a “strong” form of “aggregation”

    Declaration
    public const ClassifierShape Composition
    Field Value
    Type Description
    ClassifierShape

    Dependency

    It indicates the scope is a package. Dependency is a directed relationship, which is used to show that some UML elements need or depends on other model elements for specifications.

    Declaration
    public const ClassifierShape Dependency
    Field Value
    Type Description
    ClassifierShape

    Enumeration

    It indicates the scope is a package.

    Declaration
    public const ClassifierShape Enumeration
    Field Value
    Type Description
    ClassifierShape

    Inheritance

    It indicates the scope is protected. Inheritance is also called as “generalization”. Inheritance is a binary taxonomic directed relationship between a more general classifier (superclass) and a more specific classifier (subclass)

    Declaration
    public const ClassifierShape Inheritance
    Field Value
    Type Description
    ClassifierShape

    Interface

    It indicates the scope is private. An Interface is a kind of classifier that represents a declaration of a set of coherent public features and obligations

    Declaration
    public const ClassifierShape Interface
    Field Value
    Type Description
    ClassifierShape

    Realization

    It indicates the scope is protected.

    Declaration
    public const ClassifierShape Realization
    Field Value
    Type Description
    ClassifierShape

    value__

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