menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DiagramSize - API Reference

    Show / Hide Table of Contents

    Class DiagramSize

    Describes the size of an object.

    Inheritance
    System.Object
    DiagramSize
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class DiagramSize : Object
    Examples
    <SfDiagramComponent @ref = "diagram" >
    </SfDiagramComponent> 
    <SfSymbolPaletteComponent  SymbolDragPreviewSize="@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 an object.

    Declaration
    public Nullable<double> Height { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Double>
    Examples
    <SfDiagramComponent @ref = "diagram" Width="1000px" Height="1000px" @bind-Nodes="Nodes">
    </SfDiagramComponent> 
    <SfSymbolPaletteComponent Height="600px" Palettes="@Palettes" SymbolDragPreviewSize="@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 an object.

    Declaration
    public Nullable<double> Width { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Double>
    Examples
    <SfDiagramComponent @ref = "diagram" >
    </SfDiagramComponent> 
    <SfSymbolPaletteComponent SymbolDragPreviewSize="@SymbolPreview"   >
    </SfSymbolPaletteComponent >
    @code
    {
        SfDiagramComponent diagram;
        SymbolPreview = new DiagramSize
        {
           Height = 80, Width = 80
        };
    }
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved