menu

Blazor

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

    Show / Hide Table of Contents

    Class DiagramThickness

    Describes the thickness of a frame around a rectangle.

    Inheritance
    System.Object
    DiagramObject
    DiagramThickness
    Implements
    IDiagramObject
    System.ICloneable
    Inherited Members
    DiagramObject.GetParent()
    DiagramObject.OnPropertyChanged(String, Object, Object, IDiagramObject)
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class DiagramThickness : DiagramObject, IDiagramObject, ICloneable

    Constructors

    DiagramThickness()

    Initializes a new instance of the TextElement.

    Declaration
    public DiagramThickness()

    DiagramThickness(DiagramThickness)

    Creates a new instance of the TextElement from the given DiagramThickness.

    Declaration
    public DiagramThickness(DiagramThickness src)
    Parameters
    Type Name Description
    DiagramThickness src

    DiagramThickness.

    Properties

    Bottom

    Gets or sets the bottom value of the thickness.

    Declaration
    public double Bottom { get; set; }
    Property Value
    Type
    System.Double
    Examples
    Connector connector = new Connector()
    {
        // A fixed user handle is created and stored in the fixed user handle collection of the Connector.
        FixedUserHandles = new DiagramObjectCollection<ConnectorFixedUserHandle>()
        {
            new ConnectorFixedUserHandle()
            {
                Visibility = true,Padding = new DiagramThickness() {  Bottom = 1 },
                PathData = "M60.3,18H27.5c-3,0-5.5,2.4-5.5,5.5v38.2h5.5V23.5h32.7V18z M68.5,28.9h-30c-3,0-5.5,2.4-5.5,5.5v38.2c0,3,2.4,5.5,5.5,5.5h30c3,0,5.5-2.4,5.5-5.5V34.4C73.9,31.4,71.5,28.9,68.5,28.9z M68.5,72.5h-30V34.4h30V72.5z"
            }
        },
    };

    Left

    Gets or sets the left value of the thickness.

    Declaration
    public double Left { get; set; }
    Property Value
    Type
    System.Double
    Examples
    Connector connector = new Connector()
    {
        FixedUserHandles = new DiagramObjectCollection<ConnectorFixedUserHandle>()
        {
            new ConnectorFixedUserHandle()
            {
                Visibility = true,Padding = new DiagramThickness() {  Left = 1 },
        },
    };

    Right

    Gets or sets the right value of the thickness.

    Declaration
    public double Right { get; set; }
    Property Value
    Type
    System.Double
    Examples
    Connector connector = new Connector()
    {
        // A fixed user handle is created and stored in the fixed user handle collection of the Connector.
        FixedUserHandles = new DiagramObjectCollection<ConnectorFixedUserHandle>()
        {
            new ConnectorFixedUserHandle()
            {
                Padding = new DiagramThickness() {  Right = 1 },
            }
        },
    };

    Top

    Gets or sets the top value of the thickness.

    Declaration
    public double Top { get; set; }
    Property Value
    Type
    System.Double
    Examples
    Connector connector = new Connector()
    {
        // A fixed user handle is created and stored in the fixed user handle collection of the Connector.
        FixedUserHandles = new DiagramObjectCollection<ConnectorFixedUserHandle>()
        {
            new ConnectorFixedUserHandle()
            {
                Visibility = true,Padding = new DiagramThickness() {  Top = 1 },
                PathData = "M60.3,18H27.5c-3,0-5.5,2.4-5.5,5.5v38.2h5.5V23.5h32.7V18z M68.5,28.9h-30c-3,0-5.5,2.4-5.5,5.5v38.2c0,3,2.4,5.5,5.5,5.5h30c3,0,5.5-2.4,5.5-5.5V34.4C73.9,31.4,71.5,28.9,68.5,28.9z M68.5,72.5h-30V34.4h30V72.5z"
            }
        },
    };

    Methods

    Clone()

    Creates a new DiagramThickness that is a copy of the current DiagramThickness.

    Declaration
    public override object Clone()
    Returns
    Type Description
    System.Object

    DiagramThickness

    Overrides
    DiagramObject.Clone()

    Implements

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