menu

Blazor

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

    Show / Hide Table of Contents

    Class CommonElement

    The basic UI building blocks in a diagram node or connector are elements. To create a node or connector, multiple elements can be combined

    Inheritance
    System.Object
    CommonElement
    DiagramElement
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public abstract class CommonElement : Object
    Remarks

    A Element is responsible for sizing and positioning of all nodes and connectors. For a node, it has more PathElement and TextElement to render

    Constructors

    CommonElement()

    Declaration
    protected CommonElement()

    Properties

    ActualSize

    Gets or sets the actual size of the Element that will be rendered

    Declaration
    public DiagramSize ActualSize { get; set; }
    Property Value
    Type
    DiagramSize

    Bounds

    Gets the size and location of the element in pixels, including its non-client elements relative to the parent control.

    Declaration
    public DiagramRect Bounds { get; set; }
    Property Value
    Type
    DiagramRect

    CornerRadius

    Gets or sets a value that represents the degree to which the corners of a border are rounded. It is only applicable to Element.

    Declaration
    public double CornerRadius { get; set; }
    Property Value
    Type
    System.Double

    DesiredSize

    After taking into consideration the constraints gets or sets the exact size of which the element should be rendered

    Declaration
    public DiagramSize DesiredSize { get; set; }
    Property Value
    Type
    DiagramSize

    Flip

    Gets or sets the mirror image of diagram element in both horizontal and vertical directions.

    Declaration
    public FlipDirection Flip { get; set; }
    Property Value
    Type Description
    FlipDirection

    The default value will be None

    FlipMode

    The FlipMode is used to control the behaviour of the flip object.

    Declaration
    public DiagramFlipMode FlipMode { get; set; }
    Property Value
    Type
    DiagramFlipMode

    Height

    Gets or sets the height of the element.

    Declaration
    public Nullable<double> Height { get; set; }
    Property Value
    Type
    System.Nullable<System.Double>

    HorizontalAlignment

    Gets or sets the horizontal alignment of the elements arranged to its immediate parent. Specifies how a Element in a control is horizontally aligned with respect to its parent element

    Declaration
    public HorizontalAlignment HorizontalAlignment { get; set; }
    Property Value
    Type Description
    HorizontalAlignment

    The default value will be Auto

    ID

    Gets or sets the unique id of the element

    Declaration
    public string ID { get; set; }
    Property Value
    Type
    System.String

    IsDirt

    Gets or sets whether the content of the element needs to be measured or not. If it is false, the element will not measure unnecessary scenarios

    Declaration
    protected bool IsDirt { get; set; }
    Property Value
    Type Description
    System.Boolean

    true, content of the element needs to be measured; otherwise, false

    Margin

    Gets or sets the extra space around the outer boundaries of the element

    Declaration
    public DiagramThickness Margin { get; set; }
    Property Value
    Type Description
    DiagramThickness

    The default values for the margin are set to 0 on all sides

    MaxHeight

    Gets or sets the maximum height of the element.

    Declaration
    public Nullable<double> MaxHeight { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Double>

    The default value is undefined

    MaxWidth

    Gets or sets the maximum width of the element.

    Declaration
    public Nullable<double> MaxWidth { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Double>

    The default value is undefined

    MinHeight

    Gets or sets the minimum height of the element.

    Declaration
    public Nullable<double> MinHeight { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Double>

    The default value is undefined

    MinWidth

    Gets or sets the minimum width of the element.

    Declaration
    public Nullable<double> MinWidth { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Double>

    The default value is undefined

    OffsetX

    Gets or sets the X-coordinate of the element

    Declaration
    public double OffsetX { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 0

    OffsetY

    Gets or sets the y-coordinate of the element.

    Declaration
    public double OffsetY { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 0

    OuterBounds

    Gets the element's outside bounds. It will consider all the margin and padding properties as well.

    Declaration
    public DiagramRect OuterBounds { get; set; }
    Property Value
    Type
    DiagramRect

    ParentID

    Gets or sets the parent id of the element

    Declaration
    public string ParentID { get; set; }
    Property Value
    Type
    System.String

    Pivot

    The element’s rotation angle will be based on pivot values, which range from 0 to 1 like offset values. By default, the Pivot values are set to X= 0.5 and Y=0.5.

    Declaration
    public DiagramPoint Pivot { get; set; }
    Property Value
    Type Description
    DiagramPoint

    The default value will be PivotX=0.5,Y=0.5

    RelativeMode

    Gets or sets whether the element has to be aligned based on the offset values or its immediate parent

    Declaration
    public RelativeMode RelativeMode { get; set; }
    Property Value
    Type Description
    RelativeMode

    The default value will be Point

    RotationAngle

    Gets or sets the rotate angle of the element.

    Declaration
    public double RotationAngle { get; set; }
    Property Value
    Type
    System.Double

    Shadow

    Gets or sets the shadow appearance of a node.

    Declaration
    public Shadow Shadow { get; set; }
    Property Value
    Type
    Shadow

    Style

    Represents the appearance of the element.

    Declaration
    public ShapeStyle Style { get; set; }
    Property Value
    Type Description
    ShapeStyle

    The default value will be ShapeStyle{ Fill = "white", StrokeColor = "black", Opacity = 1, StrokeWidth = 1 }

    VerticalAlignment

    Gets or sets the vertical alignment of the element.

    Declaration
    public VerticalAlignment VerticalAlignment { get; set; }
    Property Value
    Type Description
    VerticalAlignment

    The default value will be Auto

    Visible

    Represents whether the content of the element is visible or not..

    Declaration
    public bool Visible { get; set; }
    Property Value
    Type Description
    System.Boolean

    true, content of the element is visible; otherwise, false

    Width

    Gets or sets the width of the element. If it is not specified, the element renders based on the content's width

    Declaration
    public Nullable<double> Width { get; set; }
    Property Value
    Type
    System.Nullable<System.Double>
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved