menu

ASP.NET MVC

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

    Show / Hide Table of Contents

    Class BasicShape

    Diagram provides support to add different kind of nodes.

    Inheritance
    System.Object
    EJTagHelper
    NodeBase
    Node
    BasicShape
    Inherited Members
    Node.FillColor
    Node.BorderColor
    Node.BorderGradient
    Node.BorderWidth
    Node.Flip
    Node.BorderDashArray
    Node.Opacity
    Node.IsExpanded
    Node.Gradient
    Node.Type
    Node.Shadow
    NodeBase.Children
    NodeBase.Name
    NodeBase.Width
    NodeBase.ZOrder
    NodeBase.Height
    NodeBase.OffsetX
    NodeBase.OffsetY
    NodeBase.Visible
    NodeBase.AllowDrop
    NodeBase.Constraints
    NodeBase.Tag
    NodeBase.Labels
    NodeBase.Ports
    NodeBase.RotateAngle
    NodeBase.ExpandIcon
    NodeBase.CollapseIcon
    NodeBase.IsGroup
    NodeBase.ConnectorPadding
    NodeBase.Pivot
    NodeBase.Tooltip
    NodeBase.AddInfo
    NodeBase.Parent
    NodeBase.CssClass
    NodeBase.ExcludeFromLayout
    NodeBase.HorizontalAlign
    NodeBase.VerticalAlign
    NodeBase.MarginLeft
    NodeBase.MarginTop
    NodeBase.MarginRight
    NodeBase.MarginBottom
    NodeBase.MinHeight
    NodeBase.MinWidth
    NodeBase.MaxWidth
    NodeBase.MaxHeight
    NodeBase.Container
    NodeBase.PaletteItem
    EJTagHelper.GetControlDetails()
    EJTagHelper.GetControlDetails(String)
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.JavaScript.DataVisualization.Models.Diagram
    Assembly: Syncfusion.EJ.dll
    Syntax
    public class BasicShape : Node

    Constructors

    BasicShape()

    Initializes a new instance of the BasicShape class.

    Declaration
    public BasicShape()

    BasicShape(BasicShape)

    Initializes a new instance of the BasicShape class.

    Declaration
    public BasicShape(BasicShape src)
    Parameters
    Type Name Description
    BasicShape src

    Properties

    CornerRadius

    Gets or sets the corner radius of rectangular shapes

    Declaration
    [JsonProperty("cornerRadius")]
    public double CornerRadius { get; set; }
    Property Value
    Type Description
    System.Double

    0

    Examples
               BasicShape Node = new BasicShape();
               Node.Name = "node2";
               Node.Width = 100;
               Node.Height = 100;
               Node.CornerRadius = 5;

    PathData

    Gets or sets the path geometry that defines the shape of a path node

    Declaration
    [JsonProperty("pathData")]
    public string PathData { get; set; }
    Property Value
    Type Description
    System.String

    String.Empty

    Examples
      BasicShape Node = new BasicShape() { Name = "SwimLane", Type = Shapes.Path, PathData = "M370.9702,194.9961L359.5112,159.7291L389.5112,137.9341L419.5112,159.7291L408.0522,194.9961L370.9702,194.9961z" };

    PointCollection

    Declaration
    public virtual Collection PointCollection { get; }
    Property Value
    Type Description
    Collection

    Points

    Gets or sets a collection of points to draw a polygon. Applicable, if the shape is a polygon

    Declaration
    [JsonProperty("points")]
    public Collection Points { get; set; }
    Property Value
    Type Description
    Collection

    Collection

    Examples
                Collection Points = new Collection();
               Points.Add(new DiagramPoint(0, 12.5f));
               Points.Add(new DiagramPoint(0, 50));
               Points.Add(new DiagramPoint(50, 50));
               Points.Add(new DiagramPoint(50, 0));
               Points.Add(new DiagramPoint(12.5f, 0));
               BasicShape Node = new BasicShape() { Name = "SwimLane", Points = Points };

    Shape

    Gets or sets the shape of the node. It depends upon the type of node

    Declaration
    [JsonConverter(typeof(StringEnumConverter))]
    [JsonProperty("shape")]
    public BasicShapes Shape { get; set; }
    Property Value
    Type Description
    BasicShapes

    BasicShapes.Rectangle

    Examples
               BasicShape Node = new BasicShape() { Name = "SwimLane", Shape = BasicShapes.Ellipse };
               Model.Nodes.Add(Node);

    Methods

    Clone()

    Performs a deep copy of the set of matched elements, meaning that it copies the matched elements as well as all of their descendant elements.

    Declaration
    public override object Clone()
    Returns
    Type Description
    System.Object

    object

    Overrides
    Node.Clone()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved