IImageExtensions
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.1.0.0)
Adds fluent markup extension methods to the IImage interface.
- C#
- VB.NET
public class IImageExtensions
Public Class IImageExtensions
Methods
Image<TImage>(target, value)
Sets the image for the specified target.
| Parameter | Type | Description |
|---|---|---|
| TImage | The type of the target, which must implement IImage. | |
| target | TImage | The target object on which to set the image. |
| value | Image | The image to set. |
Returns: TImage. The target object with the updated image.
ImageAlign<TImage>(target, value)
Sets the image alignment for the specified target.
| Parameter | Type | Description |
|---|---|---|
| TImage | The type of the target, which must implement IImage. | |
| target | TImage | The target object on which to set the image alignment. |
| value | ContentAlignment | The image alignment to set. |
Returns: TImage. The target object with the updated image alignment.
ImageIndex<TImage>(target, value)
Sets the image index for the specified target.
| Parameter | Type | Description |
|---|---|---|
| TImage | The type of the target, which must implement IImage. | |
| target | TImage | The target object on which to set the image index. |
| value | Int32 | The image index to set. |
Returns: TImage. The target object with the updated image index.
ImageKey<TImage>(target, value)
Sets the image key for the specified target.
| Parameter | Type | Description |
|---|---|---|
| TImage | The type of the target, which must implement IImage. | |
| target | TImage | The target object on which to set the image key. |
| value | String | The image key to set. |
Returns: TImage. The target object with the updated image key.
ImageList<TImage>(target, value)
Sets the image list for the specified target.
| Parameter | Type | Description |
|---|---|---|
| TImage | The type of the target, which must implement IImage. | |
| target | TImage | The target object on which to set the image list. |
| value | ImageList | The image list to set. |
Returns: TImage. The target object with the updated image list.
ImageSource<TImage>(target, value)
Sets the image source for the specified target.
| Parameter | Type | Description |
|---|---|---|
| TImage | The type of the target, which must implement IImage. | |
| target | TImage | The target object on which to set the image source. |
| value | String | The image source to set. |
Returns: TImage. The target object with the updated image source.