menu

ASP.NET MVC

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

    Show / Hide Table of Contents

    Class ImageNode

    Diagram allows you to add images as image nodes. For image nodes, the type should be set as “image”.

    Inheritance
    System.Object
    EJTagHelper
    NodeBase
    Node
    ImageNode
    Inherited Members
    Node.FillColor
    Node.BorderColor
    Node.BorderGradient
    Node.BorderWidth
    Node.Flip
    Node.BorderDashArray
    Node.Opacity
    Node.IsExpanded
    Node.Gradient
    Node.Type
    Node.Shadow
    Node.Shape
    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 ImageNode : Node

    Constructors

    ImageNode()

    Initializes a new instance of the ImageNode class.

    Declaration
    public ImageNode()

    ImageNode(ImageNode)

    Initializes a new instance of the ImageNode class.

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

    Properties

    ContentAlignment

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

    Scale

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

    Source

    Gets or sets the source path of the image. Applicable, if the type of the node is image.

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

    String.Empty

    Examples
      ImageNode Node = new ImageNode() { Name = "SwimLane", Source = "Clayton.png" };

    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