Image Browser Cell
Represents a cell that displays an image and a image caption.
Namespace: LSOne.Controls.Cells
Assembly: LSOne.Controls.ListView
Syntax
public class ImageBrowserCell : ExtendedCell
Constructors
Name | Description |
---|---|
ImageBrowserCell(string, System.Drawing.Image, int, [bool singleSelection = True]) | Initializes a new instance of the ImageBrowserCell class with the given image, text, image width and the supported selection mode (single or multiple selection) |
Properties
Name | Description |
---|---|
ImageMode |
Gets or sets the image display mode. It supports the following values:
|
IsSelected | Gets if the current cell is selected |
Tag | Gets or sets the object that contains data about the control |
TextMode |
Gets or sets the text display mode. It supports the following values:
|
Methods
Name | Description |
---|---|
SetSelected(LSOne.Controls.ListView, bool) | Selects the current cell in the ListView |
Remarks
The click on the image browser cell is handled in the ListView.CellAction event handler
private void listView1_CellAction(object sender, LSOne.Controls.EventArguments.CellEventArgs args)
{
if (args.ColumnNumber == 2 && args.Cell is ImageBrowserCell)
{
//do something
}
}
Examples
var cell = new ImageBrowserCell("green", Properties.Resources.dot_green_16, 35);
cell.ImageMode = ImageBrowserCell.ImageModes.Normal;
row.Height = 50;