# `GSLayer gridMax:`

*Instance Method*

Current grid settings, limiting horizontal rounding to a maximum grid length.

## Declaration

```objc
- (GSGridSettings) gridMax:(CGFloat) max;
```

```python
gridMax_(max: float) -> GSGridSettings
```

## Parameters

- `max` — The maximum horizontal grid length.

## Discussion

Returns `GSZeroGrid` when rounding is temporarily disabled or no associated master is available.

## See Also

### Grid

- [`GSLayer grid`](/Core/GlyphsCore/GSLayer/grid) — Current grid settings used for layer rounding.
- [`GSLayer gridLengthHorizontal`](/Core/GlyphsCore/GSLayer/gridLengthHorizontal) — Horizontal grid length used for layer rounding.
- [`GSLayer gridLengthVertical`](/Core/GlyphsCore/GSLayer/gridLengthVertical) — Vertical grid length used for layer rounding.
- [`GSLayer.temporarilyDisableRounding`](/Core/GlyphsCore/GSLayer/temporarilyDisableRounding) — Temporarily disables grid rounding for layer operations.
- [`GSLayer alignPointToGrid:type:`](/Core/GlyphsCore/GSLayer/alignPointToGrid:type:) — A point aligned to the layer grid for a node type.

