<!-- Generated by tools/SharpCell.Grid.Docs from the XML documentation comments. Do not edit; run the tool with 'generate'. -->

# GridRect

```csharp
public readonly struct GridRect
```

Namespace `SharpCell.Grid` · package `SharpCell.Grid`

A rectangle in device-independent pixels.

## Constructors

<a id="ctor-double-double-double-double"></a>
### GridRect(double, double, double, double)

```csharp
public GridRect(double X, double Y, double Width, double Height)
```

A rectangle in device-independent pixels.

**Parameters**

- `X`: The left edge.
- `Y`: The top edge.
- `Width`: The width.
- `Height`: The height.

## Properties

<a id="bottom"></a>
### Bottom

```csharp
public double Bottom { get; }
```

The bottom edge.

<a id="height"></a>
### Height

```csharp
public double Height { get; init; }
```

The height.

<a id="right"></a>
### Right

```csharp
public double Right { get; }
```

The right edge.

<a id="width"></a>
### Width

```csharp
public double Width { get; init; }
```

The width.

<a id="x"></a>
### X

```csharp
public double X { get; init; }
```

The left edge.

<a id="y"></a>
### Y

```csharp
public double Y { get; init; }
```

The top edge.
