IImage

Wisej.Web.IImage

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.0.0.0)

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

public interface IImage

Using IImage allows developers to use uniform code to access the image-related properties used by the control.

// 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

Image: Returns or sets the Image that is displayed in the control.

ContentAlignment: Returns or sets the alignment of the image for the controls that support image aligment.

Int32: Returns or sets the image list index value of the image in the ImageList.

String: Returns or sets the key accessor for the image in the ImageList.

ImageList: Returns or sets the ImageList that contains the images to display in the control.

String: Returns or sets the theme name or URL for the image to display in the control.

Implemented By

Last updated