---
title: "rectOfTickMark(at:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsslidercell/rectoftickmark(at:)"
---

# rectOfTickMark(at:)

Returns the bounding rectangle of the tick mark at the specified index.

## Declaration

```swift
func rectOfTickMark(at index: Int) -> NSRect
```

## Parameters

- `index`: The index of the tick mark for which to return the bounding rectangle. The minimum-value tick mark is at index 0.

## Return Value

Return Value The bounding rectangle of the specified tick mark.

## Discussion

Discussion If no tick mark is associated with index, the method raises NSRangeException.

## See Also

### Managing Tick Marks

- [allowsTickMarkValuesOnly](appkit/nsslidercell/allowstickmarkvaluesonly.md)
- [closestTickMarkValue(toValue:)](appkit/nsslidercell/closesttickmarkvalue(tovalue:).md)
- [indexOfTickMark(at:)](appkit/nsslidercell/indexoftickmark(at:).md)
- [numberOfTickMarks](appkit/nsslidercell/numberoftickmarks.md)
- [tickMarkPosition](appkit/nsslidercell/tickmarkposition.md)
- [tickMarkValue(at:)](appkit/nsslidercell/tickmarkvalue(at:).md)
