Class GridLines
Gridlines are the pattern of lines drawn behind the diagram elements. It provides a visual guidance while dragging or arranging the objects on the diagram surface.
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 GridLines : EJTagHelper
Constructors
GridLines()
Declaration
public GridLines()
Properties
LineColor
Gets or sets the line color of horizontal grid lines
Declaration
[JsonProperty("lineColor")]
public string LineColor { get; set; }
Property Value
Type | Description |
---|---|
System.String | "lightgray" |
Examples
DiagramProperties Model = new DiagramProperties();
Model.SnapSettings.VerticalGridlines.LineDashArray = "blue";
Model.SnapSettings.VerticalGridlines.LineColor = "5,5";
LineDashArray
Gets or sets the pattern of dashes and gaps used to stroke horizontal grid lines
Declaration
[JsonProperty("lineDashArray")]
public string LineDashArray { get; set; }
Property Value
Type | Description |
---|---|
System.String | String.Empty |
Examples
DiagramProperties Model = new DiagramProperties();
Model.SnapSettings.VerticalGridlines.LineDashArray = "blue";
Model.SnapSettings.VerticalGridlines.LineColor = "5,5";
LinesInterval
Gets or sets a pattern of lines and gaps that defines a set of horizontal gridlines
Declaration
[JsonProperty("linesInterval")]
public List<decimal> LinesInterval { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.Decimal> | null |
Examples
DiagramProperties Model = new DiagramProperties();
List<Decimal> List = new List<Decimal>();
List.Add(1);
List.Add(14);
List.Add(5);
List.Add(14);
Model.SnapSettings.VerticalGridlines.LinesInterval = List;
SnapInterval
Gets or sets a set of intervals to snap the objects
Declaration
[JsonProperty("snapInterval")]
public List<decimal> SnapInterval { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.Decimal> | [20] |
Examples
DiagramProperties Model = new DiagramProperties();
List<Decimal> SnapIntervel = new List<decimal>();
SnapIntervel.Add(5);
Model.SnapSettings.VerticalGridlines.SnapInterval = SnapIntervel;