Blazor

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

    Show / Hide Table of Contents

    Class SymbolInfo

    Specifies the information of the symbol.

    Inheritance
    System.Object
    SymbolInfo
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class SymbolInfo : Object
    Examples
    <SfSymbolPalette Height="600px" SymbolHeight="60" SymbolWidth="60" SymbolInfo="@SymbolInfo" Palettes="@Palettes">
    </SfSymbolPalette>
    @code{
       public ObservableCollection<SymbolPalettePalette> Palettes;
       // Defines palette's basic-shape collection
       public ObservableCollection<Object> BasicShapes { get; set; }
       public SymbolInfo SymbolInfo;
       protected override void OnInitialized()
       {
           Palettes = new ObservableCollection<SymbolPalettePalette>();
           SymbolInfo = new SymbolInfo() { Fit = true };
           //Initialize the basicshapes for the symbol palette
           BasicShapes = new ObservableCollection<Object>
               ()
           {
           new DiagramNode()
           {
           Id = "Rectangle",
           Shape = new DiagramShape() { Type = Shapes.Basic, BasicShape = Syncfusion.Blazor.Diagrams.BasicShapes.Rectangle }
           }
           };
           Palettes.Add(new SymbolPalettePalette() { Id = "BasicShapes", Expanded = true, Symbols = BasicShapes, Title = "Basicshapes" });
       }
    }

    Constructors

    SymbolInfo()

    Declaration
    public SymbolInfo()

    Properties

    Description

    Defines the text to be displayed and how that is to be handled. By default its empty string.

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

    Fit

    Specifies whether the symbol has to be fit inside the size, which is defined by the symbol palette.

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

    Height

    Defines the height of the symbol to be drawn over the palette. By default, it's undefined.

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

    Template

    Define the template of the symbol that is to be drawn over the palette.

    Declaration
    public DOM Template { get; set; }
    Property Value
    Type Description
    DOM

    Tooltip

    Define the text to be displayed when mouse hover on the shape.

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

    Width

    Defines the width of the symbol to be drawn over the palette. By default, it's 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