Table of Contents

Class NoxGridCell

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

A single cell

public sealed class NoxGridCell
Inheritance
NoxGridCell
Inherited Members

Properties

Alignment

Horizontal alignment (Nothing uses the column Alignment).

public HorizontalAlignment? Alignment { get; set; }

Property Value

HorizontalAlignment?

BackColor

Cell background color (empty uses the row, column or grid setting).

public Color BackColor { get; set; }

Property Value

Color

Bold

Bold text in this cell.

public bool Bold { get; set; }

Property Value

bool

BorderColor

Border color (empty uses dark gray).

public Color BorderColor { get; set; }

Property Value

Color

BorderWidth

Border width (px; 0 means 1).

public int BorderWidth { get; set; }

Property Value

int

Borders

Border sides (NoxBorders.All, Bottom, etc.)

public NoxBorders Borders { get; set; }

Property Value

NoxBorders

ColumnIndex

Column index of the cell.

public int ColumnIndex { get; }

Property Value

int

ComboItems

Combo column: the list for this cell only (strings or objects; the column's DisplayMember and ValueMember apply). Null uses the column list. It follows the row when rows are sorted, inserted or removed.

public IEnumerable ComboItems { get; set; }

Property Value

IEnumerable

EditableWhenGridReadOnly

Lets this cell be edited even when the grid ReadOnly is True (column, row and cell ReadOnly still apply).

public bool EditableWhenGridReadOnly { get; set; }

Property Value

bool

FontSize

Font size (pt). 0 uses the grid font size.

public float FontSize { get; set; }

Property Value

float

ForeColor

Cell text color (empty uses the row, column or grid setting).

public Color ForeColor { get; set; }

Property Value

Color

FormattedValue

Display text with the column Format applied

public string FormattedValue { get; }

Property Value

string

Formula

Formula ("=SUM(A1:A3)"). Nothing if there is no formula. Setting it puts the formula; an empty string removes it.

public string Formula { get; set; }

Property Value

string

HasFormula

Gets whether the cell has a formula.

public bool HasFormula { get; }

Property Value

bool

IsMerged

Whether the cell belongs to a merged area (explicit merge)

public bool IsMerged { get; }

Property Value

bool

Italic

Italic text in this cell.

public bool Italic { get; set; }

Property Value

bool

Locked

Makes only this cell read-only.

public bool Locked { get; set; }

Property Value

bool

OwningColumn

Column of the cell.

public NoxGridColumn OwningColumn { get; }

Property Value

NoxGridColumn

ReadOnly

True if the grid, row, column, cell or data source is read-only.

public bool ReadOnly { get; }

Property Value

bool

RowIndex

Row of the cell.

public int RowIndex { get; }

Property Value

int

Selected

Whether the cell is selected.

public bool Selected { get; }

Property Value

bool

SelectionBackColor

Background color while the cell is selected (empty uses the grid SelectionBackColor).

public Color SelectionBackColor { get; set; }

Property Value

Color

SelectionForeColor

Text color while the cell is selected. Takes priority over every other text color (empty: normal rules).

public Color SelectionForeColor { get; set; }

Property Value

Color

Strikeout

Strikeout

public bool Strikeout { get; set; }

Property Value

bool

Tag

Arbitrary user data

public object Tag { get; set; }

Property Value

object

Text

Display text. Setting it converts the text to the column type and stores the value (e.g. "1,234" → 1234).

public string Text { get; set; }

Property Value

string

ToolTipText

Tooltip shown when the mouse is over this cell (empty: the default, i.e. truncated text). A validation error is shown first.

public string ToolTipText { get; set; }

Property Value

string

Underline

Underlined text in this cell.

public bool Underline { get; set; }

Property Value

bool

Value

Value of the cell.

public object Value { get; set; }

Property Value

object

VerticalAlignment

Vertical alignment (Nothing uses the column VerticalAlignment).

public NoxVerticalAlignment? VerticalAlignment { get; set; }

Property Value

NoxVerticalAlignment?

WrapText

Word wrap (Nothing uses the column WrapText).

public bool? WrapText { get; set; }

Property Value

bool?