# `GSFont objectInStemsAtIndex:`

*Instance Method*

Returns the stem at an index.

## Declaration

```swift
func stem(at idx: UInt) -> GSMetric?
```

```objc
- (GSMetric *) objectInStemsAtIndex:(NSUInteger) idx;
```

```python
objectInStemsAtIndex_(idx: int) -> GSMetric
```

## See Also

### Stems

- [`GSFont.stems`](/Core/GlyphsCore/GSFont/stems) — Font-wide stem definitions.
- [`GSFont countOfStems`](/Core/GlyphsCore/GSFont/countOfStems) — Returns the number of stem definitions.
- [`GSFont stemForId:`](/Core/GlyphsCore/GSFont/stemForId:) — Returns the first stem with an identifier.
- [`GSFont stemForName:`](/Core/GlyphsCore/GSFont/stemForName:) — Returns the first stem with a name.
- [`GSFont addStem:`](/Core/GlyphsCore/GSFont/addStem:) — Adds a stem definition to the font.
- [`GSFont removeObjectFromStems:`](/Core/GlyphsCore/GSFont/removeObjectFromStems:) — Removes a stem definition from the font.

