Syncfusion.SfChart.XForms
Example 
Syncfusion.SfChart.XForms Namespace > ChartAxis Class : MajorGridLineStyle Property

MajorGridLineStyle Property

Gets or sets the options for customizing the major grid lines. This is a bindable property.
Syntax
public ChartLineStyle MajorGridLineStyle {get; set;}

Property Value

This property takes the ChartLineStyle as its value.
Example
This below code shows how to set the MajorGridLineStyle.
void MyPage()
{
	SfChart chart = new SfChart();
	
	ChartLineStyle majorGridLineStyle = new ChartLineStyle ();
	majorGridLineStyle.StrokeColor = Color.Gray;
	majorGridLineStyle.StrokeDashArray = new double[]{ 1, 3 };
	chart.PrimaryAxis.MajorGridLineStyle = majorGridLineStyle;
}
AssemblyVersion

Syncfusion.SfChart.XForms: 17.1451.0.47

See Also