Class LabelMargin
It is an absolute value used to add some blank space in any one of its four sides.
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 LabelMargin : EJTagHelper
Constructors
LabelMargin()
Initializes a new instance of the LabelMargin class.
Declaration
public LabelMargin()
LabelMargin(Double, Double, Double, Double)
Initializes a new instance of the LabelMargin class.
Declaration
public LabelMargin(double top, double left, double right, double bottom)
Parameters
Type | Name | Description |
---|---|---|
System.Double | top | |
System.Double | left | |
System.Double | right | |
System.Double | bottom |
Properties
Bottom
Gets or sets the minimum displacement value to the bottom from offset
Declaration
[JsonProperty("bottom")]
public double Bottom { get; set; }
Property Value
Type | Description |
---|---|
System.Double | 0 |
Examples
Node Node = new Node() { Name = "node1", Height = 100, HorizontalAlign = HorizontalAlignment.Right };
Collection Labels = new Collection();
Labels.Add(new Label() { Text = "Node1", Italic = true, Margin = new LabelMargin() { Bottom = 5 } });
Node.Labels = Labels;
Model.Nodes.Add(Node);
Left
Gets or sets the minimum displacement value to the left from offset
Declaration
[JsonProperty("left")]
public double Left { get; set; }
Property Value
Type | Description |
---|---|
System.Double | 0 |
Examples
Node Node = new Node() { Name = "node1", Height = 100, HorizontalAlign = HorizontalAlignment.Right };
Collection Labels = new Collection();
Labels.Add(new Label() { Text = "Node1", Italic = true, Margin = new LabelMargin() Left = 5 } });
Node.Labels = Labels;
Model.Nodes.Add(Node);
Right
Gets or sets the minimum displacement value to the right from offset
Declaration
[JsonProperty("right")]
public double Right { get; set; }
Property Value
Type | Description |
---|---|
System.Double | 0 |
Examples
Node Node = new Node() { Name = "node1", Height = 100, HorizontalAlign = HorizontalAlignment.Right };
Collection Labels = new Collection();
Labels.Add(new Label() { Text = "Node1", Italic = true, Margin = new LabelMargin() { Right = 5 } });
Node.Labels = Labels;
Model.Nodes.Add(Node);
Top
Gets or sets the minimum displacement value to the top from offset
Declaration
[JsonProperty("top")]
public double Top { get; set; }
Property Value
Type | Description |
---|---|
System.Double | 0 |
Examples
Node Node = new Node() { Name = "node1", Height = 100, HorizontalAlign = HorizontalAlignment.Right };
Collection Labels = new Collection();
Labels.Add(new Label() { Text = "Node1", Italic = true, Margin = new LabelMargin() { Top = 5 } });
Node.Labels = Labels;
Model.Nodes.Add(Node);