Class BasicShapes
Specifies the common shapes that are used to represent information visually.
Inheritance
System.Object
BasicShapes
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class BasicShapes : Enum
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
Decagon
Sets the type of the basic shape as Decagon.
Declaration
public const BasicShapes Decagon
Field Value
Diamond
Sets the type of the basic shape as Diamond.
Declaration
public const BasicShapes Diamond
Field Value
Ellipse
Sets the type of the basic shape as Ellipse.
Declaration
public const BasicShapes Ellipse
Field Value
Heptagon
Sets the type of the basic shape as Heptagon.
Declaration
public const BasicShapes Heptagon
Field Value
Hexagon
Sets the type of the basic shape as Hexagon.
Declaration
public const BasicShapes Hexagon
Field Value
Octagon
Sets the type of the basic shape as Octagon.
Declaration
public const BasicShapes Octagon
Field Value
Parallelogram
Sets the type of the basic shape as Parallelogram.
Declaration
public const BasicShapes Parallelogram
Field Value
Pentagon
Sets the type of the basic shape as Pentagon.
Declaration
public const BasicShapes Pentagon
Field Value
Plus
Sets the type of the basic shape as Plus.
Declaration
public const BasicShapes Plus
Field Value
Polygon
Sets the type of the basic shape as Polygon.
Declaration
public const BasicShapes Polygon
Field Value
Rectangle
Sets the type of the basic shape as Rectangle.
Declaration
public const BasicShapes Rectangle
Field Value
RightTriangle
Sets the type of the basic shape as the Right Triangle.
Declaration
public const BasicShapes RightTriangle
Field Value
Star
Sets the type of the basic shape as Star.
Declaration
public const BasicShapes Star
Field Value
Trapezoid
Sets the type of the basic shape as Trapezoid.
Declaration
public const BasicShapes Trapezoid
Field Value
Triangle
Sets the type of the basic shape as Triangle.
Declaration
public const BasicShapes Triangle
Field Value
value__
Declaration
Field Value
Type |
Description |
System.Int32 |
|