Table of Contents

Class NoxGridCellFormattingEventArgs

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

Adjustment just before a cell is displayed (conditional formatting).

public class NoxGridCellFormattingEventArgs : EventArgs
Inheritance
NoxGridCellFormattingEventArgs
Inherited Members

Constructors

NoxGridCellFormattingEventArgs(int, NoxGridColumn, object, string, Color, Color)

Creates the event data.

public NoxGridCellFormattingEventArgs(int rowIndex, NoxGridColumn column, object value, string formattedValue, Color backColor, Color foreColor)

Parameters

rowIndex int
column NoxGridColumn
value object
formattedValue string
backColor Color
foreColor Color

Properties

BackColor

Background color. Change it to color the cell.

public Color BackColor { get; set; }

Property Value

Color

Bold

Bold text

public bool Bold { get; set; }

Property Value

bool

Column

The column (Nothing for a row header).

public NoxGridColumn Column { get; }

Property Value

NoxGridColumn

ForeColor

Text color.

public Color ForeColor { get; set; }

Property Value

Color

FormattedValue

Text to show. Change it to show different text (the value stays).

public string FormattedValue { get; set; }

Property Value

string

RowIndex

Row index of the cell (-1 for a column header).

public int RowIndex { get; }

Property Value

int

Selected

Whether the cell is selected. BackColor is ignored for selected cells; use SelectionBackColor.

public bool Selected { get; }

Property Value

bool

SelectionBackColor

Background color when selected (starts with the cell SelectionBackColor; empty uses the grid SelectionBackColor).

public Color SelectionBackColor { get; set; }

Property Value

Color

SelectionForeColor

Text color when selected. Takes priority over ForeColor (starts with the cell SelectionForeColor; empty: normal rules).

public Color SelectionForeColor { get; set; }

Property Value

Color

Value

The cell value.

public object Value { get; }

Property Value

object