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

# rectOfTickMark(at:)

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

## Declaration

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

## Parameters

- `index`: The index of the tick mark for which to retrieve the bounds. 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. In its implementation of this method, the receiving NSSlider instance invokes the method of the same name of its NSSliderCell instance.

## See Also

### Managing tick marks

- [allowsTickMarkValuesOnly](appkit/nsslider/allowstickmarkvaluesonly.md)
- [closestTickMarkValue(toValue:)](appkit/nsslider/closesttickmarkvalue(tovalue:).md)
- [indexOfTickMark(at:)](appkit/nsslider/indexoftickmark(at:).md)
- [numberOfTickMarks](appkit/nsslider/numberoftickmarks.md)
- [tickMarkPosition](appkit/nsslider/tickmarkposition-swift.property.md)
- [NSSlider.TickMarkPosition](appkit/nsslider/tickmarkposition-swift.enum.md)
- [tickMarkValue(at:)](appkit/nsslider/tickmarkvalue(at:).md)
