# IImage

Namespace: **Wisej.Web**

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

Provides access to common image properties across the controls that implement this interface.

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

```csharp
public interface IImage
```

{% endtab %}

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

```visual-basic
Public Interface IImage
```

{% endtab %}
{% endtabs %}

Using [IImage](https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.iimage) allows developers to use uniform code to access the image-related properties used by the control.

```csharp

// Old code
if (control is Button)
((Button)control).ImageSource = "icon-save";
else if (control is Label)
((Label)control).ImageSource = "icon-save";
// etc...

// New code
if (control is IImage)
((IImage)control).ImageSource = "icon-save";

```

## Properties

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Image

[Image](https://docs.microsoft.com/dotnet/api/system.drawing.image): Returns or sets the [Image](#image) that is displayed in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ImageAlign

[ContentAlignment](https://docs.microsoft.com/dotnet/api/system.drawing.contentalignment): Returns or sets the alignment of the image for the controls that support image alignment.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ImageIndex

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns or sets the image list index value of the image in the [ImageList](#imagelist).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ImageKey

[String](https://docs.microsoft.com/dotnet/api/system.string): Returns or sets the key accessor for the image in the [ImageList](#imagelist).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ImageList

[ImageList](https://docs.wisej.com/api/wisej.web/content/imagelist): Returns or sets the [ImageList](#imagelist) that contains the images to display in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ImageSource

[String](https://docs.microsoft.com/dotnet/api/system.string): Returns or sets the theme name or URL for the image to display in the control.

## Implemented By

| Name                                                                                                           | Description                                                                                                                                                                           |
| -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [TableLayoutPanel](https://docs.wisej.com/api/wisej.web/containers/tablelayoutpanel)                           | Represents a panel that dynamically lays out its contents in a grid composed of rows and columns.                                                                                     |
| [BindingNavigator](https://docs.wisej.com/api/wisej.web/data-binding/wisej.web.bindingnavigator)               | Represents the navigation and manipulation user interface (UI) for controls that are bound to a data source.                                                                          |
| [Button](https://docs.wisej.com/api/wisej.web/buttons/button)                                                  | Represents a button control.                                                                                                                                                          |
| [ButtonBase](https://docs.wisej.com/api/wisej.web/buttons/wisej.web.buttonbase)                                | Implements the basic functionality common to button controls.                                                                                                                         |
| [CheckBox](https://docs.wisej.com/api/wisej.web/buttons/wisej.web.checkbox)                                    | Represents a check box control.                                                                                                                                                       |
| [FlowLayoutPanel](https://docs.wisej.com/api/wisej.web/containers/flowlayoutpanel)                             | Represents a panel that dynamically arranges its controls horizontally or vertically in automatic rows or columns.                                                                    |
| [Label](https://docs.wisej.com/api/wisej.web/content/wisej.web.label)                                          | Represents a label control.                                                                                                                                                           |
| [LinkLabel](https://docs.wisej.com/api/wisej.web/content/linklabel)                                            | Represents an hyper-link control.                                                                                                                                                     |
| [Panel](https://docs.wisej.com/api/wisej.web/containers/wisej.web.panel)                                       | Represents a collapsible panel with an optional header that contains a group of controls.                                                                                             |
| [PictureBox](https://docs.wisej.com/api/wisej.web/content/wisej.web.picturebox)                                | Represents an image control.                                                                                                                                                          |
| [RadioButton](https://docs.wisej.com/api/wisej.web/buttons/wisej.web.radiobutton)                              | Enables the user to select a single option from a group of choices when paired with other [RadioButton](https://docs.wisej.com/api/wisej.web/buttons/wisej.web.radiobutton) controls. |
| [SplitterPanel](https://docs.wisej.com/api/wisej.web/containers/splitcontainer/wisej.web.splitterpanel)        | Creates a panel that is associated with a [SplitContainer](https://docs.wisej.com/api/wisej.web/containers/splitcontainer).                                                           |
| [TabPage](https://docs.wisej.com/api/wisej.web/containers/tabcontrol/wisej.web.tabpage)                        | Represents a single tab page in a [TabControl](https://docs.wisej.com/api/wisej.web/containers/tabcontrol).                                                                           |
| [DataRepeaterItem](https://docs.wisej.com/api/wisej.web/containers/datarepeater/wisej.web.datarepeateritem)    | Used by the [DataRepeater](https://docs.wisej.com/api/wisej.web/containers/datarepeater) control to display data at run time.                                                         |
| [AccordionPanel](https://docs.wisej.com/api/wisej.web/containers/accordion/wisej.web.accordionpanel)           | Represents a panel in a [Accordion](https://docs.wisej.com/api/wisej.web/containers/accordion) control.                                                                               |
| [FlexLayoutPanel](https://docs.wisej.com/api/wisej.web/containers/flexlayoutpanel)                             | Represents a panel that dynamically arranges its child controls.                                                                                                                      |
| [SplitButton](https://docs.wisej.com/api/wisej.web/buttons/wisej.web.splitbutton)                              | Represents a split button control.                                                                                                                                                    |
| [ColumnHeader](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnheader)           | Displays a standard column header in a [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) control.                                                             |
| [ImageColumnHeader](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.imagecolumnheader) | Displays an image column header in a [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) control.                                                               |
| [ListViewItem](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.listviewitem)           | Represents an item in a [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) control.                                                                            |
| [TreeNode](https://docs.wisej.com/api/wisej.web/lists-and-grids/treeview/wisej.web.treenode)                   | Represents a node of a [TreeView](https://docs.wisej.com/api/wisej.web/lists-and-grids/treeview).                                                                                     |
