Table of Contents

Class NoxGridImageColumn

Namespace
Nox.Grid.WinForms
Assembly
Nox.Grid.WinForms.dll

Image column. Draws the image if the value is an Image, Icon or byte() (image file contents); for a number or text, draws the ImageList image with that index or key. ShowText = True also writes the value text to the right of the image (status icon + "Done").

public class NoxGridImageColumn : NoxGridColumn, IComponent, IDisposable
Inheritance
NoxGridImageColumn
Implements
Inherited Members

Constructors

NoxGridImageColumn()

Creates an image column.

public NoxGridImageColumn()

NoxGridImageColumn(string, string)

Creates an image column with a name and header text.

public NoxGridImageColumn(string name, string headerText)

Parameters

name string
headerText string

Properties

DefaultAlignment

Alignment of a new column of this kind.

protected override HorizontalAlignment DefaultAlignment { get; }

Property Value

HorizontalAlignment

DefaultImage

Image drawn when no image matches the value. Default: Nothing.

public Image DefaultImage { get; set; }

Property Value

Image

DefaultSortMode

Sort mode of a new column of this kind.

protected override NoxGridColumnSortMode DefaultSortMode { get; }

Property Value

NoxGridColumnSortMode

DefaultWidth

Width of a new column of this kind.

protected override int DefaultWidth { get; }

Property Value

int

ImageLayout

How the image is fitted into the cell. Default: Zoom.

public NoxImageLayout ImageLayout { get; set; }

Property Value

NoxImageLayout

ImageList

ImageList that supplies images when the value is an index or a key. Default: Nothing.

public ImageList ImageList { get; set; }

Property Value

ImageList

ShowText

Also shows the value as text to the right of the image (e.g. a status icon + "Done"). Default: False.

public bool ShowText { get; set; }

Property Value

bool

Methods

FormatValue(object)

Image values have no text. Indexes and keys are kept as is (used for filtering and export).

public override string FormatValue(object value)

Parameters

value object

Returns

string

GetImage(object)

Image for the value (DefaultImage if none)

public virtual Image GetImage(object value)

Parameters

value object

Returns

Image