Class Alignment
To initialize a label can be aligned relative to the node boundaries.
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 Alignment : EJTagHelper
Constructors
Alignment()
Declaration
public Alignment()
Properties
Horizontal
Gets or sets the horizontal alignment of tooltip.
Declaration
[JsonProperty("horizontal")]
[JsonConverter(typeof(StringEnumConverter))]
public HorizontalAlignment Horizontal { get; set; }
Property Value
Type | Description |
---|---|
HorizontalAlignment | HorizontalAlignment.Center |
Examples
DiagramProperties Model = new DiagramProperties();
Tooltip Tooltip = new Tooltip() { TemplateId = "mouseovertooltip", Alignment = new Alignment() { Vertical = VerticalAlignment.Bottom, Horizontal = HorizontalAlignment.Center } };
Node Node = new Node() { Name = "elizabeth", Width = 70, Height = 40, OffsetX = 100, OffsetY = 100, Tooltip = Tooltip };
Model.Nodes.Add(Node);
ViewData["diagramModel"] = Model;
Vertical
Gets or sets the vertical alignment of tooltip.
Declaration
[JsonConverter(typeof(StringEnumConverter))]
[JsonProperty("vertical")]
public VerticalAlignment Vertical { get; set; }
Property Value
Type | Description |
---|---|
VerticalAlignment | VerticalAlignment.Bottom |
Examples
DiagramProperties Model = new DiagramProperties();
Tooltip Tooltip = new Tooltip() { TemplateId = "mouseovertooltip", Alignment = new Alignment() { Vertical = VerticalAlignment.Bottom, Horizontal = HorizontalAlignment.Center } };
Node Node = new Node() { Name = "elizabeth", Width = 70, Height = 40, OffsetX = 100, OffsetY = 100, Tooltip = Tooltip };
Model.Nodes.Add(Node);
ViewData["diagramModel"] = Model;