Class TextNode
Text can be added to the diagram as text nodes. For text nodes, the type should be set as “text”.
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 TextNode : Node
Constructors
TextNode()
Initializes a new instance of the TextNode class.
Declaration
public TextNode()
TextNode(TextNode)
Initializes a new instance of the TextNode class.
Declaration
public TextNode(TextNode src)
Parameters
Type | Name | Description |
---|---|---|
TextNode | src |
Fields
_mText
Declaration
public TextBlock _mText
Field Value
Type | Description |
---|---|
TextBlock |
Properties
TextBlock
Gets or sets the textBlock of a text node
Declaration
[JsonProperty("textBlock")]
public TextBlock TextBlock { get; set; }
Property Value
Type | Description |
---|---|
TextBlock | null |
Examples
DiagramProperties Model = new DiagramProperties();
TextBlock TextNode = new TextBlock();
TextNode.Text = "Text Node";
Model.Nodes.Add(TextNode);
ViewData["diagramModel"] = Model;
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 |