alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class DiagramSize

    Represents the size of a diagram object.

    Inheritance
    object
    DiagramSize
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class DiagramSize
    Examples
    <SfDiagramComponent @ref="diagram">
    </SfDiagramComponent>
    <SfSymbolPaletteComponent [REDACTED]="@SymbolPreview">
    </SfSymbolPaletteComponent>
    @code
    {
        SfDiagramComponent diagram;
        SymbolPreview = new DiagramSize
        {
            Height = 80,
            Width = 80
        };
    }

    Constructors

    DiagramSize()

    Declaration
    public DiagramSize()

    Properties

    Height

    Gets or sets the height of the diagram component.

    Declaration
    [JsonPropertyName("height")]
    public double? Height { get; set; }
    Property Value
    Type Description
    double?

    A double representing the height in pixels. The default value is null, indicating no specific height has been set.

    Examples
    <SfDiagramComponent @ref="diagram" Width="1000px" Height="1000px" @bind-Nodes="Nodes">
    </SfDiagramComponent>
    <SfSymbolPaletteComponent Height="600px" Palettes="@Palettes" [REDACTED]="@SymbolPreview" SymbolHeight="@symbolSizeHeight" 
    GetSymbolInfo="GetSymbolInfo" SymbolWidth="@symbolSizeWidth" SymbolMargin="@SymbolMargin">
    </SfSymbolPaletteComponent>
    @code
    {
        SfDiagramComponent diagram;
        SymbolPreview = new DiagramSize
        {
            Height = 80,
            Width = 80
        };
    }

    Width

    Gets or sets the width of the diagram component.

    Declaration
    [JsonPropertyName("width")]
    public double? Width { get; set; }
    Property Value
    Type Description
    double?

    A double representing the width in pixels. The default value is null, indicating no specific width has been set.

    Examples
    <SfDiagramComponent @ref="diagram">
    </SfDiagramComponent>
    <SfSymbolPaletteComponent [REDACTED]="@SymbolPreview">
    </SfSymbolPaletteComponent>
    @code
    {
        SfDiagramComponent diagram;
        SymbolPreview = new DiagramSize
        {
            Height = 80,
            Width = 80
        };
    }
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved