Free Support Forum -

Aspose.Slides How to hide the grid lines on an axis in a chart?

I and trying and so far have been unable to figure out how to programmatically turn of the grid lines on a chart. The Aspose.Slides.Charts.IAxis interface contains a bool ShowMajorGridLines and bool ShowMinorGridLines but they are read only. I tried changing various properties within MajorGridLinesFormat and MinorGridLinesFormat as well, and so far haven’t been able to hide a grid line. Thank you.

I found it. It is axis.MajorGridLinesFormat.Line.FillFormat.FillType = FillType.NoFill and .MinorGridLinesFormat.Line.FillFormat.FillType = FillType.NoFill;


It’s good to know that you have found the working property. Please share, if I may help you any further.