Class Header
Defines the header of the swimlane nodes in the diagram.
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 Header : Label
Constructors
Header()
Declaration
public Header()
Properties
Height
Gets or sets the header of a swimlane/lane
Declaration
[JsonProperty("height")]
public double Height { get; set; }
Property Value
Type | Description |
---|---|
System.Double | null |
Examples
DiagramProperties Model = new DiagramProperties();
SwimLane Node = new SwimLane();
Node.Name = "swimlane";
Node.Header.Text = "swimlane";
Node.Header.FontSize = 12;
Node.Header.Bold = true;
Model.Nodes.Add(Node);
Text
Gets or sets the label text
Declaration
[JsonProperty("text")]
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String | String.Empty |
Examples
Node node = new Node() { Name = "node1", Height = 100, HorizontalAlign = HorizontalAlignment.Right };
Collection labels = new Collection();
labels.Add(new Label() { Text = "Node1", Name = "Node1", RotateAngle = 50 });
node.Labels = labels;
Model.Nodes.Add(node);