Class Padding
Sets the padding for diagram functionalities like nodes, labels, models, rulers, and more.
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 Padding : EJTagHelper
Constructors
Padding()
Initializes a new instance of the Padding class.
Declaration
public Padding()
Padding(Double, Double, Double, Double)
Initializes a new instance of the Padding class.
Declaration
public Padding(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 bottom padding of the scroll region
Declaration
[JsonProperty("bottom")]
public double Bottom { get; set; }
Property Value
Type | Description |
---|---|
System.Double | 0 |
Examples
DiagramProperties Model = new DiagramProperties();
Model.ScrollSettings.Padding = new Padding() { Bottom = 10, Right = 10, Left = 10, Top = 10 };
Left
Gets or sets the left padding of the scroll region
Declaration
[JsonProperty("left")]
public double Left { get; set; }
Property Value
Type | Description |
---|---|
System.Double | 0 |
Examples
DiagramProperties Model = new DiagramProperties();
Model.ScrollSettings.Padding = new Padding() { Bottom = 10, Right = 10, Left = 10, Top = 10 };
Right
Gets or sets the right padding of the scroll region
Declaration
[JsonProperty("right")]
public double Right { get; set; }
Property Value
Type | Description |
---|---|
System.Double | 0 |
Examples
DiagramProperties Model = new DiagramProperties();
Model.ScrollSettings.Padding = new Padding() { Bottom = 10, Right = 10, Left = 10, Top = 10 };
Top
Gets or sets the top padding of the scroll region
Declaration
[JsonProperty("top")]
public double Top { get; set; }
Property Value
Type | Description |
---|---|
System.Double | 0 |
Examples
DiagramProperties Model = new DiagramProperties();
Model.ScrollSettings.Padding = new Padding() { Bottom = 10, Right = 10, Left = 10, Top = 10 };