menu

Blazor

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

    Show / Hide Table of Contents

    Class SymbolInfo

    Represents the size and description of a symbol.

    Inheritance
    System.Object
    SymbolInfo
    Namespace: Syncfusion.Blazor.Diagram.SymbolPalette
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class SymbolInfo : Object
    Examples
    <SfSymbolPaletteComponent Height="600px"   GetSymbolInfo="GetSymbolInfo" >
    </SfSymbolPaletteComponent >
    @code
    { 
        private SymbolInfo GetSymbolInfo(IDiagramObject symbol)
        {
            SymbolInfo SymbolInfo = new SymbolInfo();
            SymbolInfo.Fit = true;
            return SymbolInfo;
        }
    }

    Constructors

    SymbolInfo()

    Declaration
    public SymbolInfo()

    Properties

    Description

    Specifies the text to be displayed and how that is to be handled.

    Declaration
    public SymbolDescription Description { get; set; }
    Property Value
    Type Description
    SymbolDescription
    Examples
    <SfSymbolPaletteComponent Height="600px"   GetSymbolInfo="GetSymbolInfo" >
    </SfSymbolPaletteComponent >
    @code
    { 
        private SymbolInfo GetSymbolInfo(IDiagramObject symbol)
        {
            SymbolInfo SymbolInfo = new SymbolInfo();
            SymbolInfo.Description = new SymbolDescription() { Text = text };
            return SymbolInfo;
        }
    }

    Fit

    Represents whether the symbol can fit into the size that is defined by the symbol palette..

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

    true, we can fit the symbol that is defined by the symbol palette; Otherwise false.The default value is false.

    Examples
    <SfSymbolPaletteComponent Height="600px"   GetSymbolInfo="GetSymbolInfo" >
    </SfSymbolPaletteComponent >
    @code
    { 
        private SymbolInfo GetSymbolInfo(IDiagramObject symbol)
        {
            SymbolInfo SymbolInfo = new SymbolInfo();
            SymbolInfo.Fit = true;
            return SymbolInfo;
        }
    }

    Height

    Represents the height of the symbol to be drawn over the palette.

    Declaration
    public double Height { get; set; }
    Property Value
    Type Description
    System.Double
    Examples
    <SfSymbolPaletteComponent Height="600px"   GetSymbolInfo="GetSymbolInfo" >
    </SfSymbolPaletteComponent >
    @code
    { 
        private SymbolInfo GetSymbolInfo(IDiagramObject symbol)
        {
            SymbolInfo SymbolInfo = new SymbolInfo();
            SymbolInfo.Height = 80;
            return SymbolInfo;
        }
    }

    Width

    Represents the width of the symbol to be drawn over the palette.

    Declaration
    public double Width { get; set; }
    Property Value
    Type Description
    System.Double
    Examples
    <SfSymbolPaletteComponent Height="600px"   GetSymbolInfo="GetSymbolInfo" >
    </SfSymbolPaletteComponent >
    @code
    { 
        private SymbolInfo GetSymbolInfo(IDiagramObject symbol)
        {
            SymbolInfo SymbolInfo = new SymbolInfo();
            SymbolInfo.Width = 80;
            return SymbolInfo;
        }
    }
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved