AxisBase.MajorTickMark Property
Gets or sets the major tick mark position type.
Namespace: DevExpress.Docs.Office
Assembly: DevExpress.Docs.Core.v26.1.dll
Declaration
Property Value
| Type | Description |
|---|---|
| AxisTickMarkType | The major tick mark position type. |
Available values:
| Name |
|---|
| Cross |
| Inside |
| None |
| Outside |
Example
Use the Axis.MajorTickMark and Axis.MinorTickMark properties to specify the tick mark type for major and minor ticks. Possible values are None, Inside, Outside, and Cross:
using DevExpress.Docs.Office;
CategoryAxis? xAxis = chart.ArgumentAxis as CategoryAxis;
if (xAxis != null) {
xAxis.MajorTickMark = AxisTickMarkType.Cross;
xAxis.MinorTickMark = AxisTickMarkType.Inside;
}
See Also