Class UMLClass
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.JavaScript.DataVisualization.Models.Diagram
Assembly: Syncfusion.EJ.dll
Syntax
public class UMLClass : EJTagHelper
Constructors
UMLClass()
Declaration
public UMLClass()
UMLClass(UMLClass)
Declaration
public UMLClass(UMLClass src)
Parameters
Type | Name | Description |
---|---|---|
UMLClass | src |
Properties
Attributes
Gets or sets the attribute collection of the UML Class object
Declaration
[JsonProperty("attributes")]
public Collection Attributes { get; set; }
Property Value
Type | Description |
---|---|
Collection | Collection |
Examples
UMLClassifier Node = new UMLClassifier();
Node.OffsetX = 100;
Node.OffsetY = 100;
Node.FillColor = "#1BA0E2";
Node.Classifier = ClassifierShapes.Class;
Node.Class = new UMLClass()
{
Name = "Bank Account",
Attributes = new Collection() {
new UMLAttribute() { Name = "owner", Type="String" },
new UMLAttribute() { Name = "balance", Type="Double" },
}
};
Methods
Gets or sets the method collection of the UML Class object
Declaration
[JsonProperty("methods")]
public Collection Methods { get; set; }
Property Value
Type | Description |
---|---|
Collection | Collection |
Examples
UMLClassifier Node = new UMLClassifier();
Node.OffsetX = 100;
Node.OffsetY = 100;
Node.FillColor = "#1BA0E2";
Node.Classifier = ClassifierShapes.Class;
Node.Class = new UMLClass()
{
Name = "Bank Account",
Methods = new Collection() {
new UMLMethod() {
Name= "deposit", Parameters = new Collection { new UMLParameter() { Name="amount", Type="Double" } }
},
new UMLMethod(){
Name= "withdrawal", Parameters = new Collection { new UMLParameter() { Name="amount", Type="Double" } }
},
}
};
Name
Gets or sets the name of the class
Declaration
[JsonProperty("name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | String.Empty |
Examples
UMLClassifier Node = new UMLClassifier();
Node.OffsetX = 100;
Node.OffsetY = 100;
Node.FillColor = "#1BA0E2";
Node.Classifier = ClassifierShapes.Class;
Node.Class = new UMLClass()
{
Name = "Bank Account"
};