Class HorizontalGridLinesBuilder
Implementation of horizontalgridlines properties using view formatting
Inheritance
System.Object
HorizontalGridLinesBuilder
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.Builders
Assembly: Syncfusion.EJ.dll
Syntax
public class HorizontalGridLinesBuilder
Constructors
HorizontalGridLinesBuilder(SnapSettings)
Declaration
public HorizontalGridLinesBuilder(SnapSettings snapSettings)
Parameters
Type | Name | Description |
---|---|---|
SnapSettings | snapSettings |
Fields
snapSettings
Declaration
public SnapSettings snapSettings
Field Value
Type | Description |
---|---|
SnapSettings |
Methods
LineColor(String)
Gets or sets the line color of horizontal grid lines
Declaration
public HorizontalGridLinesBuilder LineColor(string lineColor)
Parameters
Type | Name | Description |
---|---|---|
System.String | lineColor |
Returns
Type | Description |
---|---|
HorizontalGridLinesBuilder | "lightgray" |
Examples
@{
Html.EJ().Diagram("Diagram").Height("600px").SnapSettings(
sn => sn.HorizontalGridLines(hor => hor.LineColor("red"))
);}
LineDashArray(String)
Gets or sets the pattern of dashes and gaps used to stroke horizontal grid lines
Declaration
public HorizontalGridLinesBuilder LineDashArray(string lineDashArray)
Parameters
Type | Name | Description |
---|---|---|
System.String | lineDashArray |
Returns
Type | Description |
---|---|
HorizontalGridLinesBuilder | String.Empty |
Examples
@{
Html.EJ().Diagram("Diagram").Height("600px").SnapSettings(
sn => sn.HorizontalGridLines(hor => hor.LineDashArray("5,5"))
);}
LinesInterval(List<Decimal>)
Gets or sets a pattern of lines and gaps that defines a set of horizontal gridlines
Declaration
public HorizontalGridLinesBuilder LinesInterval(List<decimal> linesInterval)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<System.Decimal> | linesInterval |
Returns
Type | Description |
---|---|
HorizontalGridLinesBuilder | null |
Examples
@{
List<Decimal> List = new List<decimal>();
List.Add(1);
List.Add(14);
List.Add(5);
List.Add(14);
Html.EJ().Diagram("Diagram").Height("600px").SnapSettings(
sn => sn.HorizontalGridLines(hor => hor.LinesInterval(List))
);}
SnapInterval(List<Decimal>)
Gets or sets a set of intervals to snap the objects
Declaration
public HorizontalGridLinesBuilder SnapInterval(List<decimal> snapInterval)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<System.Decimal> | snapInterval |
Returns
Type | Description |
---|---|
HorizontalGridLinesBuilder | [20] |
Examples
@{
List<Decimal> List = new List<decimal>();
List.Add(1);
List.Add(14);
List.Add(5);
List.Add(14);
Html.EJ().Diagram("Diagram").Height("600px").SnapSettings(
sn => sn.HorizontalGridLines(hor => hor.SnapInterval(List))
);}