AxisBase.MajorGridlines Property
Gets or sets line settings for major gridlines.
Namespace: DevExpress.Docs.Office
Assembly: DevExpress.Docs.Core.v26.1.dll
Declaration
Property Value
| Type | Description |
|---|---|
| ChartLineOptions | Line settings for major gridlines. |
Example
Use an axis MajorGridlines and MinorGridlines properties to customize major and minor gridlines:
using DevExpress.Docs.Presentation;
using DevExpress.Docs.Office;
ValueAxis? yAxis = chart.ValueAxis;
if (yAxis != null) {
yAxis.MajorGridlines = new ChartLineOptions { OutlineStyle = new OutlineStyle { Fill = new SolidFill(Color.DarkMagenta) } };
yAxis.MinorGridlines = new ChartLineOptions { OutlineStyle = new OutlineStyle { Fill = new SolidFill(Color.Magenta) } };
}
See Also