我有一个图表,其中包含一些数据。我不想显示 x 和 Y 轴。我以某种方式找到了如何删除图表中的图例。但未能隐藏轴。
我也只想删除网格线和轴。我有带有以下代码的图表对象。
PowerPoint.Shape chartShape = slide.Shapes.AddChart(Microsoft.Office.Core.XlChartType.xlBarClustered, left, top, width, height);
//Get the chart
PowerPoint.Chart chart = chartShape.Chart;
chart.Legend.Clear();
谁能知道如何用c#隐藏它?