menu

ASP.NET MVC

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

    Show / Hide Table of Contents

    Class NativeNode

    It provides support to embed SVG element into a node. To create a native node, the type node should be set as “native”.

    Inheritance
    System.Object
    EJTagHelper
    NodeBase
    Node
    NativeNode
    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 NativeNode : Node

    Constructors

    NativeNode()

    Initializes a new instance of the NativeNode class.

    Declaration
    public NativeNode()

    NativeNode(NativeNode)

    Initializes a new instance of the NativeNode class.

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

    Properties

    ContentAlignment

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

    Scale

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

    TemplateId

    Gets or sets the id of svg/html templates. Applicable, if the node is html or native.

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

    String.Empty

    Examples
       <script id="svgTemplate" type="text/x-jsrender">
           <svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="70px" height="30px">
               <g visibility="visible">
                   <image width="70px" height="35px" opacity="1" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="{{:addInfo.source}}"></image>
                   <text x="25" y="20" font-size="11" style="height:30px">
                       <tspan>{{:name}}</tspan>
                   </text>
               </g>
           </svg>
       </script>
           NativeNode Node = new NativeNode()
           {
               Name = "bpmn",
               TemplateId = "svgTemplate"
           };

    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