# ImageLayout

Namespace: **Wisej.Web**

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

Specifies the position of the image on the control.

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

```csharp
public enum ImageLayout : Enum
```

{% endtab %}

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

```visual-basic
Public Enum ImageLayout 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 control's client rectangle.                                                     |
| **None**         | The image is left-aligned at the top across the control's client rectangle.                                      |
| **OriginalSize** | The image left-aligned at the top and sized using the image original size.                                       |
| **Stretch**      | The image is stretched across the control's client rectangle.                                                    |
| **Tile**         | The image is tiled across the control's client rectangle.                                                        |
| **Zoom**         | The image is enlarged within the control's client rectangle.                                                     |

## Used By

| Name                                                                                                                                                                      | Description                                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Control.BackgroundImageLayout](https://docs.wisej.com/api/general/control#backgroundimagelayout)                                                                         | Returns or sets the background image layout as defined in the [ImageLayout](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.imagelayout) enumeration. |
| [DataGridViewCellStyle.BackgroundImageLayout](https://docs.wisej.com/api/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle#backgroundimagelayout)              | Returns or sets the background image layout as defined in the [ImageLayout](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.imagelayout) enumeration. |
| [ControlExtensions.BackgroundImageLayout](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.controlextensions#backgroundimagelayout-control-layout) | Sets the layout of the background image for the specified control.                                                                                                |
