IImage
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Provides access to common image properties across the controls that implement this interface.
- C#
- VB.NET
public interface IImage
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
Image: Returns or sets the Image that is displayed in the control.
ImageAlign
ContentAlignment: Returns or sets the alignment of the image for the controls that support image aligment.
ImageIndex
Int32: Returns or sets the image list index value of the image in the ImageList.
ImageKey
String: Returns or sets the key accessor for the image in the ImageList.
ImageList
ImageList: Returns or sets the ImageList that contains the images to display in the control.
ImageSource
String: Returns or sets the theme name or URL for the image to display in the control.
Implemented By
| Name | Description |
|---|---|
| TableLayoutPanel | Represents a panel that dynamically lays out its contents in a grid composed of rows and columns. |
| BindingNavigator | Represents the navigation and manipulation user interface (UI) for controls that are bound to a data source. |
| Button | Represents a button control. |
| ButtonBase | Implements the basic functionality common to button controls. |
| CheckBox | Represents a check box control. |
| FlowLayoutPanel | Represents a panel that dynamically arranges its controls horizontally or vertically in automatic rows or columns. |
| Label | Represents a label control. |
| LinkLabel | Represents an hyper-link control. |
| Panel | Represents a collapsible panel with an optional header that contains a group of controls. |
| PictureBox | Represents an image control. |
| RadioButton | Enables the user to select a single option from a group of choices when paired with other RadioButton controls. |
| SplitterPanel | Creates a panel that is associated with a SplitContainer. |
| TabPage | Represents a single tab page in a TabControl. |
| DataRepeaterItem | Used by the DataRepeater control to display data at run time. |
| AccordionPanel | Represents a panel in a Accordion control. |
| FlexLayoutPanel | Represents a panel that dynamically arranges its child controls. |
| SplitButton | Represents a split button control. |
| ColumnHeader | Displays a standard column header in a ListView control. |
| ImageColumnHeader | Displays an image column header in a ListView control. |
| ListViewItem | Represents an item in a ListView control. |
| TreeNode | Represents a node of a TreeView. |