Class DiagramElement
Represents the basic UI building blocks in a diagram node or connector are diagram elements. To create a node or connector, multiple DiagramElements can be combined.
Inheritance
Inherited Members
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class DiagramElement : CommonElement
Remarks
A diagram element is responsible for sizing and positioning all nodes and connectors.
For a node, it has more path element and text elements to render. (path element and text element are inherited from diagram element).
Constructors
DiagramElement()
Initializes a new instance of the DiagramElement class.
Declaration
public DiagramElement()
Remarks
The ID property is automatically assigned a unique identifier using BaseUtil.RandomId()
.
DiagramElement(DiagramElement)
Initializes a new instance of the DiagramElement class by copying properties from the specified source DiagramElement.
Declaration
public DiagramElement(DiagramElement src)
Parameters
Type | Name | Description |
---|---|---|
DiagramElement | src | A DiagramElement instance that serves as the source for copying properties. This parameter represents the basic unit of diagram from which to create the new instance. |
Remarks
This copy constructor performs a shallow copy of the source element's properties.
Methods
Clone()
Creates a new DiagramElement that is a copy of the current element.
Declaration
public virtual object Clone()
Returns
Type | Description |
---|---|
System.Object | A new DiagramElement object that is a deep copy of the current instance with all properties and values replicated. |
Remarks
Creates an independent copy with identical properties that can be modified without affecting the original element.