menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DiagramElement - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    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
    System.Object
    CommonElement
    DiagramElement
    DiagramContainer
    DiagramHtmlElement
    DiagramSvgElement
    ImageElement
    PathElement
    TextElement
    Inherited Members
    CommonElement.ActualSize
    CommonElement.Bounds
    CommonElement.CornerRadius
    CommonElement.DesiredSize
    CommonElement.Flip
    CommonElement.FlipMode
    CommonElement.Height
    CommonElement.HorizontalAlignment
    CommonElement.ID
    CommonElement.IsDirt
    CommonElement.Margin
    CommonElement.MaxHeight
    CommonElement.MaxWidth
    CommonElement.MinHeight
    CommonElement.MinWidth
    CommonElement.OffsetX
    CommonElement.OffsetY
    CommonElement.OuterBounds
    CommonElement.ParentID
    CommonElement.Pivot
    CommonElement.RelativeMode
    CommonElement.RotationAngle
    CommonElement.Shadow
    CommonElement.Style
    CommonElement.VerticalAlignment
    CommonElement.Visible
    CommonElement.Width
    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.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved