[]
Gets or sets the type of major tick mark for the specified axis.
This property determines whether major tick marks are displayed inside the axis, outside the axis, across the axis, or not displayed.
TickMark MajorTickMark { get; set; }
Property MajorTickMark As TickMark
worksheet.Range["A1:B3"].Value = new object[,] {
{"Month", "Sales"},
{"Jan", 120},
{"Feb", 150}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 360, 220).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B3"], RowCol.Columns, true, true);
IAxis axis = chart.Axes.Item(AxisType.Category, AxisGroup.Primary);
axis.MajorTickMark = TickMark.Outside;
TickMark tickMark = axis.MajorTickMark;