Class DiagramUmlEnumeration
Gets or sets the behavior of the UmlEnumeration.
Namespace: Syncfusion.Blazor.Diagrams
Assembly: Syncfusion.Blazor.dll
Syntax
public class DiagramUmlEnumeration : SfDiagramBase
Remarks
To define an enumeration, define the classifier property of node as Enumeration. Also, define the name and members of the enumeration using the enumeration property of the node.
Examples
<SfDiagram Height="600px" Nodes="@NodeCollection">
</SfDiagram>
@code{
// . . .
DiagramNode Node = new DiagramNode()
{
Id = "Patient",
OffsetX = 200,
OffsetY = 200,
Shape = new DiagramShape()
{
Type = Syncfusion.Blazor.Diagrams.Shapes.UmlClassifier,
Classifier = ClassifierShape.Enumeration,
//Define enumeration object
EnumerationShape = new DiagramUmlEnumeration()
{
Name = "AccountType",
//set the members of enumeration
Members = new ObservableCollection<DiagramUmlEnumerationMember>()
{
new DiagramUmlEnumerationMember()
{
Name = "Checking Account"
},
new DiagramUmlEnumerationMember()
{
Name = "Savings Account"
},
new DiagramUmlEnumerationMember()
{
Name = "Credit Account"
}
}
}
}
};
NodeCollection.Add(Node);
}
}
Constructors
DiagramUmlEnumeration()
Gets or sets the behavior of the UmlEnumeration.
Declaration
public DiagramUmlEnumeration()
Properties
Members
Specifies the implementation of operation in enumeration members.
Declaration
public ObservableCollection<DiagramUmlEnumerationMember> Members { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<DiagramUmlEnumerationMember> |
Name
Specifies the name of the attributes.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Style
Sets the Shape style of the node.
Declaration
public UMLEnumerationShapeStyle Style { get; set; }
Property Value
Type | Description |
---|---|
UMLEnumerationShapeStyle |