Class VerticalGridLinesBuilder
Implementation of vertical gridlines properties using view formatting
Inheritance
System.Object
VerticalGridLinesBuilder
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 VerticalGridLinesBuilder
Constructors
VerticalGridLinesBuilder(SnapSettings)
Declaration
public VerticalGridLinesBuilder(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 pattern of dashes and gaps used to stroke vertical grid lines
Declaration
public VerticalGridLinesBuilder LineColor(string lineColor)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | lineColor |
Returns
| Type | Description |
|---|---|
| VerticalGridLinesBuilder | String.Empty |
Examples
@{
  Html.EJ().Diagram("Diagram").Height("600px").SnapSettings(sn => sn.VerticalGridLines(ver => ver.LineColor("red"))
 );}
LineDashArray(String)
Gets or sets the pattern of dashes and gaps used to stroke vertical grid lines
Declaration
public VerticalGridLinesBuilder LineDashArray(string lineDashArray)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | lineDashArray |
Returns
| Type | Description |
|---|---|
| VerticalGridLinesBuilder | String.Empty |
Examples
@{
  Html.EJ().Diagram("Diagram").Height("600px").SnapSettings(sn => sn.VerticalGridLines(ver => ver.LineDashArray("5,5"))
 );}
LinesInterval(List<Decimal>)
Gets or sets a pattern of lines and gaps that defines a set of vertical gridlines
Declaration
public VerticalGridLinesBuilder LinesInterval(List<decimal> linesInterval)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.List<System.Decimal> | linesInterval |
Returns
| Type | Description |
|---|---|
| VerticalGridLinesBuilder | 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.VerticalGridLines(ver => ver.LinesInterval(List)));
}
SnapInterval(List<Decimal>)
Gets or sets a pattern of lines and gaps that defines a set of vertical gridlines
Declaration
public VerticalGridLinesBuilder SnapInterval(List<decimal> snapInterval)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.List<System.Decimal> | snapInterval |
Returns
| Type | Description |
|---|---|
| VerticalGridLinesBuilder | 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.VerticalGridLines(ver => ver.SnapInterval(List))
  );}