# DataGridViewImageCellLayout

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.0.0.0)

Specifies the layout for an image contained in a [DataGridViewCell](/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcell.md).

{% tabs %}
{% tab title="C#" %}

```csharp
public enum DataGridViewImageCellLayout : Enum
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Enum DataGridViewImageCellLayout As [Enum]
```

{% endtab %}
{% endtabs %}

## Fields

| Name             | Description                                                                                                      |
| ---------------- | ---------------------------------------------------------------------------------------------------------------- |
| **BestFit**      | The image is scaled to the largest size such that both its width and its height can fit inside the content area. |
| **Center**       | The image is centered within the cell's client rectangle.                                                        |
| **None**         | The image is left-aligned at the top across the cell's client rectangle.                                         |
| **NotSet**       | The layout specification has not been set.                                                                       |
| **OriginalSize** | The image left-aligned at the top and sized using the image original size.                                       |
| **Stretch**      | The image is stretched across the cell's client rectangle.                                                       |
| **Tile**         | The image is tiled across the cell's client rectangle.                                                           |
| **Zoom**         | The image is enlarged within the cell's client rectangle.                                                        |

## Used By

| Name                                                                                                                                        | Description                                                 |
| ------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- |
| [DataGridViewImageCell.ImageLayout](/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewimagecell.md#imagelayout)             | Gets or sets the layout of the image in the cell.           |
| [DataGridViewImageColumn.CellImageLayout](/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewimagecolumn.md#cellimagelayout) | Gets or sets the image layout in the cells for this column. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewimagecelllayout.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
