---
title: numberOfTickMarks
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nslevelindicatorcell/numberoftickmarks
---

# numberOfTickMarks

The number of tick marks displayed by the control.

## Declaration

```swift
var numberOfTickMarks: Int { get set }
```

## Discussion

Discussion The value in this property represents all of the tick marks displayed by the control, including those positioned at the minimum and maximum values. The default value of this property is 0, which results in no tick marks being displayed.

## See Also

### Managing Tick Marks

- [tickMarkPosition](appkit/nslevelindicatorcell/tickmarkposition.md)
- [numberOfMajorTickMarks](appkit/nslevelindicatorcell/numberofmajortickmarks.md)
- [tickMarkValue(at:)](appkit/nslevelindicatorcell/tickmarkvalue(at:).md)
- [rectOfTickMark(at:)](appkit/nslevelindicatorcell/rectoftickmark(at:).md)
