Class ClassifierShape
Defines the type of UML shapes to be drawn.
Inheritance
System.Object
ClassifierShape
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class ClassifierShape : Enum
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
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
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
Composition
It indicates the scope is public. The composition is a “strong” form of “aggregation”
Declaration
public const ClassifierShape Composition
Field Value
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
Enumeration
It indicates the scope is a package.
Declaration
public const ClassifierShape Enumeration
Field Value
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
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
Realization
It indicates the scope is protected.
Declaration
public const ClassifierShape Realization
Field Value
value__
Declaration
Field Value
Type |
Description |
System.Int32 |
|