[]
Specifies the position of major and minor tick marks on a chart axis.
Use this enum with axis APIs such as MajorTickMark and MinorTickMark to control whether tick marks are drawn inside the axis, outside the axis, across the axis, or not shown.
public enum TickMark
Public Enum TickMark
worksheet.Range["A1:B3"].Value = new object[,] {
{"Month", "Sales"},
{"Jan", 100},
{"Feb", 120}
};
IShape shape = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200);
shape.Chart.SeriesCollection.Add(worksheet.Range["A1:B3"], RowCol.Columns, true, true);
IAxis axis = shape.Chart.Axes.Item(AxisType.Category);
axis.MajorTickMark = TickMark.Cross;
| Name | Description |
|---|---|
| Cross | Specifies that the marks cross the axis. |
| Inside | Specifies that the marks are inside the axis. |
| None | Specifies no marks. |
| Outside | Specifies that the marks are outside the axis. |