# `GSGradient drawBounds`

*Instance Method*

Returns the bounds of the draw stack slice of which the path of the gradient is a part.

## Declaration

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

```objc
- (NSRect) drawBounds;
```

```python
drawBounds() -> NSRect
```

## Discussion

If the gradient has no parent, returns `CGRectNull`.

