Gets or sets cell image.

Namespace: Dapfor.Net.Ui
Assembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)

Syntax

C#
public Image Image { get; set; }
Visual Basic
Public Property Image As Image
	Get
	Set
Visual C++
public:
property Image^ Image {
	Image^ get ();
	void set (Image^ value);
}
F#
member Image : Image with get, set

Property Value

Type: Image
The image.

Remarks

To align the cell image, use CellImageSettings.

Examples

 Copy imageCopy
public void CellImage(Grid grid)
{
    grid.Headers[0]["Price"].Appearance.CellImageSettings.Alignment = ContentAlignment.MiddleLeft;

    Product product = new Product();
    grid.Rows.Add(product);
    Row row = grid.Rows[0];

    Bitmap image = new Bitmap("Image.ico");
    row["Price"].Image = image;
}

Thread Safety

The property is not thread safe.

See Also