menu

ASP.NET Core - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DiagramBasicShapeBuilder - ASP.NETCore-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DiagramBasicShapeBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    DiagramBasicShapeBuilder
    Namespace: Syncfusion.EJ2.Diagrams
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class DiagramBasicShapeBuilder : ControlBuilder

    Constructors

    DiagramBasicShapeBuilder()

    Declaration
    public DiagramBasicShapeBuilder()

    DiagramBasicShapeBuilder(DiagramBasicShape)

    Declaration
    public DiagramBasicShapeBuilder(DiagramBasicShape model)
    Parameters
    Type Name Description
    DiagramBasicShape model

    Methods

    CornerRadius(Double)

    Sets the corner of the node

    Declaration
    public DiagramBasicShapeBuilder CornerRadius(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    DiagramBasicShapeBuilder

    Points(Action<DiagramPointBuilder>)

    Declaration
    public DiagramBasicShapeBuilder Points(Action<DiagramPointBuilder> points)
    Parameters
    Type Name Description
    System.Action<DiagramPointBuilder> points
    Returns
    Type
    DiagramBasicShapeBuilder

    Points(List<DiagramPoint>)

    Defines the collection of points to draw a polygon

    Declaration
    public DiagramBasicShapeBuilder Points(List<DiagramPoint> value)
    Parameters
    Type Name Description
    System.Collections.Generic.List<DiagramPoint> value
    Returns
    Type
    DiagramBasicShapeBuilder

    Shape(BasicShapes)

    Defines the type of the basic shape Rectangle - Sets the type of the basic shape as Rectangle Ellipse - Sets the type of the basic shape as Ellipse Hexagon - Sets the type of the basic shape as Hexagon Parallelogram - Sets the type of the basic shape as Parallelogram Triangle - Sets the type of the basic shape as Triangle Plus - Sets the type of the basic shape as Plus Star - Sets the type of the basic shape as Star Pentagon - Sets the type of the basic shape as Pentagon Heptagon - Sets the type of the basic shape as Heptagon Octagon - Sets the type of the basic shape as Octagon Trapezoid - Sets the type of the basic shape as Trapezoid Decagon - Sets the type of the basic shape as Decagon RightTriangle - Sets the type of the basic shape as RightTriangle Cylinder - Sets the type of the basic shape as Cylinder Diamond - Sets the type of the basic shape as Diamond

    Declaration
    public DiagramBasicShapeBuilder Shape(BasicShapes value)
    Parameters
    Type Name Description
    BasicShapes value
    Returns
    Type
    DiagramBasicShapeBuilder

    Type(Shapes)

    Defines the type of node shape

    Declaration
    public DiagramBasicShapeBuilder Type(Shapes value)
    Parameters
    Type Name Description
    Shapes value
    Returns
    Type
    DiagramBasicShapeBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved