Class NoxGridImageColumn
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
Properties
DefaultAlignment
Alignment of a new column of this kind.
protected override HorizontalAlignment DefaultAlignment { get; }
Property Value
DefaultImage
Image drawn when no image matches the value. Default: Nothing.
public Image DefaultImage { get; set; }
Property Value
DefaultSortMode
Sort mode of a new column of this kind.
protected override NoxGridColumnSortMode DefaultSortMode { get; }
Property Value
DefaultWidth
Width of a new column of this kind.
protected override int DefaultWidth { get; }
Property Value
ImageLayout
How the image is fitted into the cell. Default: Zoom.
public NoxImageLayout ImageLayout { get; set; }
Property Value
ImageList
ImageList that supplies images when the value is an index or a key. Default: Nothing.
public ImageList ImageList { get; set; }
Property Value
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
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
valueobject
Returns
GetImage(object)
Image for the value (DefaultImage if none)
public virtual Image GetImage(object value)
Parameters
valueobject