Class UmlInterface
Represents a UML interface classifier in the diagram.
Inherited Members
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.Diagram.dll
Syntax
public class UmlInterface : UmlClass, IDiagramObject, ICloneable
Remarks
This class extends UmlClass and reuses its structure for attributes and operations, while applying interface-specific semantics and rendering conventions (such as italicized name or «interface» notation)
Examples
nodes.Add(new Node()
{
ID = "interfaceNode",
OffsetX = 400,
OffsetY = 200,
Width = 200,
Height = 200,
Style = new ShapeStyle() { Fill = "lightyellow" },
Shape = new UmlClassifierShape()
{
Classifier = ClassifierShape.Interface,
HeaderStyle = new TextStyle() { Fill = "yellow" },
InterfaceShape = new UmlInterface()
{
Name = "IMovable",
Methods = new DiagramObjectCollection<UmlClassMethod>()
{
new UmlClassMethod()
{
Name = "Move",
Type = "void",
Scope = UmlScope.Public
},
new UmlClassMethod()
{
Name = "Stop",
Type = "void",
Scope = UmlScope.Public
}
}
}
}
});
Constructors
UmlInterface()
Creates a new instance of the UmlClass.
Declaration
public UmlInterface()
UmlInterface(UmlInterface)
Initializes a new instance of the UmlInterface class by copying an existing instance.
Declaration
public UmlInterface(UmlInterface src)
Parameters
| Type | Name | Description |
|---|---|---|
| UmlInterface | src | The source UmlInterface to copy. |
Methods
Clone()
Creates a new object that is a copy of the current UmlInterface.
Declaration
public override object Clone()
Returns
| Type | Description |
|---|---|
| object | A new UmlInterface instance that is a deep copy of the current object. |
Overrides
Remarks
This method performs a deep copy, creating an independent instance with identical interface properties, including separator settings and styling.