Class ImageNode
Diagram allows you to add images as image nodes. For image nodes, the type should be set as “image”.
Inherited Members
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 |