Blazor

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SymbolSizeModel - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SymbolSizeModel

    Specifies the size of the symbol.

    Inheritance
    System.Object
    SymbolSizeModel
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class SymbolSizeModel : Object
    Examples
      <div style="width: 200px; float: left">
           <SfSymbolPalette Height = "600px" @ref="@SymbolPalette" Palettes="@Palettes">
           </SfSymbolPalette>
       </div>
       <SfDiagram ID = "diagram" @ref="@Diagram" Width="500px" Height="600px">
    </SfDiagram>
    @code{
           SfDiagram Diagram;
       SfSymbolPalette SymbolPalette;
       public ObservableCollection<Object> Connectors { get; set; }
       public ObservableCollection<SymbolPalettePalette> Palettes;
       protected override void OnInitialized()
       {
           Palettes = new ObservableCollection<SymbolPalettePalette>();
           //Initializes connector symbols for the symbol palette
           Connectors = new ObservableCollection<Object>()
                           {
                           new DiagramConnector()
               {
                   Id = "Link1",
                   // Sets the preview size
                   PreviewSize = new SymbolSizeModel() { Width = 100, Height = 100 },
                   // Type of the connector segemnts
                   Type = Segments.Straight,
                   // Set the source and target point of the connector
                   SourcePoint = new ConnectorSourcePoint() { X = 0, Y = 0 },
                   TargetPoint = new ConnectorTargetPoint() { X = 60, Y = 60 }
               },
                           };
           Palettes.Add(new SymbolPalettePalette() { Id = "Connectors", Expanded = true, Symbols = Connectors, Title = "Connectors" });
       }
    }

    Constructors

    SymbolSizeModel()

    Declaration
    public SymbolSizeModel()

    Properties

    Height

    Sets the height of the symbols. By default, it`s set to undefined.

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

    Width

    Sets the width of the symbols. By default, it`s set to undefined.

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