Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class BasicShapes

    Show / Hide Table of Contents

    Class BasicShapes

    Specifies the common shapes that are used to represent information visually.

    Inheritance
    System.Object
    BasicShapes
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class BasicShapes : Enum
    Remarks
    To know more about using basic shapes, refer to these links
    1. SymbolPalette
    2. Group
    3. Shapes
    To apply basic shape, use the below code.
    Examples
    <SfSymbolPalette ID="palettes" Height="600px" SymbolHeight=60 SymbolWidth=60 Palettes="@Palettes">
    </SfSymbolPalette>
    @code{
       public ObservableCollection<SymbolPalettePalette> Palettes;
       /// Defines palette's basic-shape collection
       public ObservableCollection<Object> BasicShapes { get; set; }
       protected override void OnInitialized()
       {
           Palettes = new ObservableCollection<SymbolPalettePalette>();
           BasicShapes = new ObservableCollection<Object>()
           {
                new DiagramNode()
                {
                    Id = "Rectangle",
                    Shape = new DiagramShape() {
                    Type = Shapes.Basic, BasicShape = Syncfusion.Blazor.Diagrams.BasicShapes.Rectangle
                    }
                },
                new DiagramNode()
                {
                    Id="Ellipse",
                    Shape = new DiagramShape() {
                    Type = Shapes.Basic, BasicShape = Syncfusion.Blazor.Diagrams.BasicShapes.Ellipse
                    }
                },
                new DiagramNode()
                {
                    Id="Hexagon",
                    Shape = new DiagramShape() {
                    Type = Shapes.Basic, BasicShape = Syncfusion.Blazor.Diagrams.BasicShapes.Hexagon
                    }
                }
            };
           Palettes.Add(new SymbolPalettePalette() { Id = "BasicShapes", Expanded = true, Symbols = BasicShapes, Title = "Basicshapes" });
       }
    }

    Fields

    Cylinder

    Sets the type of the basic shape as Cylinder.

    Declaration
    public const BasicShapes Cylinder
    Field Value
    Type Description
    BasicShapes

    Decagon

    Sets the type of the basic shape as Decagon.

    Declaration
    public const BasicShapes Decagon
    Field Value
    Type Description
    BasicShapes

    Diamond

    Sets the type of the basic shape as Diamond.

    Declaration
    public const BasicShapes Diamond
    Field Value
    Type Description
    BasicShapes

    Ellipse

    Sets the type of the basic shape as Ellipse.

    Declaration
    public const BasicShapes Ellipse
    Field Value
    Type Description
    BasicShapes

    Heptagon

    Sets the type of the basic shape as Heptagon.

    Declaration
    public const BasicShapes Heptagon
    Field Value
    Type Description
    BasicShapes

    Hexagon

    Sets the type of the basic shape as Hexagon.

    Declaration
    public const BasicShapes Hexagon
    Field Value
    Type Description
    BasicShapes

    Octagon

    Sets the type of the basic shape as Octagon.

    Declaration
    public const BasicShapes Octagon
    Field Value
    Type Description
    BasicShapes

    Parallelogram

    Sets the type of the basic shape as Parallelogram.

    Declaration
    public const BasicShapes Parallelogram
    Field Value
    Type Description
    BasicShapes

    Pentagon

    Sets the type of the basic shape as Pentagon.

    Declaration
    public const BasicShapes Pentagon
    Field Value
    Type Description
    BasicShapes

    Plus

    Sets the type of the basic shape as Plus.

    Declaration
    public const BasicShapes Plus
    Field Value
    Type Description
    BasicShapes

    Polygon

    Sets the type of the basic shape as Polygon.

    Declaration
    public const BasicShapes Polygon
    Field Value
    Type Description
    BasicShapes

    Rectangle

    Sets the type of the basic shape as Rectangle.

    Declaration
    public const BasicShapes Rectangle
    Field Value
    Type Description
    BasicShapes

    RightTriangle

    Sets the type of the basic shape as the Right Triangle.

    Declaration
    public const BasicShapes RightTriangle
    Field Value
    Type Description
    BasicShapes

    Star

    Sets the type of the basic shape as Star.

    Declaration
    public const BasicShapes Star
    Field Value
    Type Description
    BasicShapes

    Trapezoid

    Sets the type of the basic shape as Trapezoid.

    Declaration
    public const BasicShapes Trapezoid
    Field Value
    Type Description
    BasicShapes

    Triangle

    Sets the type of the basic shape as Triangle.

    Declaration
    public const BasicShapes Triangle
    Field Value
    Type Description
    BasicShapes

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved