[]
Gets or sets the number of categories or series between tick-mark labels.
This property applies only to category and series axes. When tick label spacing is automatic, this property returns 1.
int TickLabelSpacing { get; set; }
Property TickLabelSpacing As Integer
worksheet.Range["A1:B4"].Value = new object[,] {
{"Month", "Sales"},
{"Jan", 100},
{"Feb", 120},
{"Mar", 140}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 360, 220).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B4"]);
IAxis axis = chart.Axes.Item(AxisType.Category, AxisGroup.Primary);
axis.TickLabelSpacing = 2;
int spacing = axis.TickLabelSpacing;