# `GSComponent bounds`

*Instance Method*

The bounds of the transformed component representation.

## Declaration

```swift
func bounds() -> NSRect
```

```objc
- (NSRect) bounds;
```

[See also `bounds` in the Python API](https://docu.glyphsapp.com/#GSComponent.bounds)

```python
pyobjc_instanceMethods.bounds() -> NSRect
```

## Discussion

The bounds include open paths and any placeholder used for an unresolved, recursive, or empty base glyph.

Returns `CGRectNull` when the component has no representation.

## See Also

### Geometry

- [`GSComponent intersects:`](/Core/GlyphsCore/GSComponent/intersects:) — Whether the closed-path representation crosses that of another component.
- [`GSComponent intersectsDontCheckBounds:`](/Core/GlyphsCore/GSComponent/intersectsDontCheckBounds:) — Whether the closed-path representation crosses that of another component without first comparing their bounds.
- [`GSComponent intersectionsWithLineFrom:to:`](/Core/GlyphsCore/GSComponent/intersectionsWithLineFrom:to:) — Intersections between the transformed component representation and a line segment.

