# GridFrame class

Namespace: [Grasshopper2.UI.Graphing](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.graphing.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class GridFrame
```

Provides a way to draw a framed grid with axis labels and graph elements. The grid will be positioned and scaled to match specific x and y coordinates along all four frame edges.

## Constructors

- [GridFrame](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.gridframe/ctor.md): Create a new grid frame.

## Properties

- [Frame](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.gridframe/frame.md): Gets the frame boundary for the grid.
- [Grid](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.gridframe/grid.md): Gets the grid style.
- [MaximumX](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.gridframe/maximumx.md): Gets or sets the x value along the right edge of the frame.
- [MaximumY](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.gridframe/maximumy.md): Gets or sets the y value along the top edge of the frame.
- [MinimumX](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.gridframe/minimumx.md): Gets or sets the x value along the left edge of the frame.
- [MinimumY](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.gridframe/minimumy.md): Gets or sets the y value along the bottom edge of the frame.

## Methods

- [DrawGrid](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.gridframe/drawgrid.md): (2 overloads) Draw the grid.
- [ToFrame](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.gridframe/toframe.md): Map a 2D coordinate from unit space into frame coordinates.
