menu

ASP.NET Web Forms

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

    Show / Hide Table of Contents

    Class Node

    Nodes are graphical objects used to visually represent the geometrical information, process flow, internal business procedure, entity, or any other kind of data.

    Inheritance
    System.Object
    EJTagHelper
    NodeBase
    Node
    BasicShape
    BPMNNode
    FlowShape
    HtmlNode
    ImageNode
    NativeNode
    TextNode
    UMLActivityShape
    UMLClassifier
    Inherited Members
    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 Node : NodeBase

    Constructors

    Node()

    Initializes a new instance of the Node class.

    Declaration
    public Node()

    Node(Node)

    Initializes a new instance of the Node class.

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

    Properties

    BorderColor

    Gets or sets the borderColor of the node.

    Declaration
    [JsonProperty("borderColor")]
    public string BorderColor { get; set; }
    Property Value
    Type Description
    System.String
    Examples
        // Apply the border color for the node 
         Node node = new Node()
         {
             BorderColor = "red"
         };

    BorderDashArray

    Gets or sets the border dash array of the node.

    Declaration
    [JsonProperty("borderDashArray")]
    public string BorderDashArray { get; set; }
    Property Value
    Type Description
    System.String
    Examples
              // Apply the border dash array  for the node
               Node node = new Node()
               {
                   BorderDashArray = "3,3"
               };

    BorderGradient

    Gets or sets whether the node's border can paints  with a smooth transition from one color to another color

    Declaration
    [JsonProperty("borderGradient")]
    public Gradient BorderGradient { get; set; }
    Property Value
    Type Description
    Gradient
    Examples
              // Apply the gradient for the node's border
               LinearGradient Gradient = new LinearGradient() { X1 = 0, X2 = 0, Y1 = 0, Y2 = 0 };
               Gradient.Stops.Add(new Stop() { Color = "red" });
               Gradient.Stops.Add(new Stop() { Color = "pink" });
               Node Node = new Node() { Gradient = Gradient };

    BorderWidth

    Gets or sets the border width of the node.

    Declaration
    [JsonProperty("borderWidth")]
    public double BorderWidth { get; set; }
    Property Value
    Type Description
    System.Double
    Examples
        // Apply the border width for the node 
         Node node = new Node()
         {
             BorderWidth = 2
         };

    FillColor

    Gets or sets the fill color of the node.

    Declaration
    [JsonProperty("fillColor")]
    public string FillColor { get; set; }
    Property Value
    Type Description
    System.String
    Examples
        // Apply the fill color for the node 
         Node node = new Node()
         {
             FillColor = "red"
         };

    Flip

    Declaration
    [JsonConverter(typeof(StringEnumConverter))]
    [JsonProperty("flip")]
    public FlipDirection Flip { get; set; }
    Property Value
    Type Description
    FlipDirection

    Gradient

    Gets or sets whether the node can paints  with a smooth transition from one color to another color

    Declaration
    [JsonProperty("gradient")]
    public Gradient Gradient { get; set; }
    Property Value
    Type Description
    Gradient
    Examples
              // Apply the gradient for the node
               LinearGradient Gradient = new LinearGradient() { X1 = 0, X2 = 0, Y1 = 0, Y2 = 0 };
               Gradient.Stops.Add(new Stop() { Color = "red" });
               Gradient.Stops.Add(new Stop() { Color = "pink" });
               Node Node = new Node() { Gradient = Gradient };

    IsExpanded

    Gets or sets  whether the sub tree of the node is expanded or collapsed

    Declaration
    [JsonProperty("isExpanded")]
    public bool IsExpanded { get; set; }
    Property Value
    Type Description
    System.Boolean
    Examples
              // Apply the fill color for the node
               Node node = new Node()
               {
                   IsExpanded = true
               };

    Opacity

    Gets or sets the opacity of the node.

    Declaration
    [JsonProperty("opacity")]
    public double Opacity { get; set; }
    Property Value
    Type Description
    System.Double
    Examples
              // Apply the opacity for the node
               Node node = new Node()
               {
                   Opacity = 1
               };

    Shadow

    Gets or sets the opacity and the position of shadow

    Declaration
    [JsonProperty("shadow")]
    public Shadow Shadow { get; set; }
    Property Value
    Type Description
    Shadow
    Examples
              // Apply the opacity and the position of shadow 
              Node Node = new Node() { Shadow = new Shadow() { Distance = 10 } };       

    Shape

    Declaration
    [Obsolete("Use Node.Type")]
    [JsonProperty("shape")]
    public Shape Shape { get; set; }
    Property Value
    Type Description
    Shape

    Type

    Gets or sets type of the node

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

    Shapes.Basic

    Examples
              // Apply the type of the node
                  Node Node = new Node() { Type = Shapes.Basic };

    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 virtual object Clone()
    Returns
    Type Description
    System.Object

    object

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved