Class NoxGridCellRange
Cell range. grid.Cells[0, 0, 2, 3].BackColor = Color.Yellow, .Merge(), .Value = 0.
Rows and columns are by Columns index, inclusive on both ends.
public sealed class NoxGridCellRange
- Inheritance
-
NoxGridCellRange
- Inherited Members
Properties
Alignment
Horizontal alignment (Nothing uses the column setting).
public HorizontalAlignment? Alignment { get; set; }
Property Value
BackColor
Background color of every cell in the range.
public Color BackColor { get; set; }
Property Value
Bold
Bold text in every cell of the range.
public bool Bold { get; set; }
Property Value
BorderColor
Border color of the range's cells (with Borders).
public Color BorderColor { get; set; }
Property Value
BorderWidth
Border width (px, default 1).
public int BorderWidth { get; set; }
Property Value
Borders
The same border for every cell (e.g. NoxBorders.All draws a full grid).
public NoxBorders Borders { get; set; }
Property Value
Column
First column of the range.
public int Column { get; }
Property Value
ColumnCount
Number of columns in the range.
public int ColumnCount { get; }
Property Value
FontSize
Font size (pt). 0 uses the grid font size.
public float FontSize { get; set; }
Property Value
ForeColor
Text color of every cell in the range.
public Color ForeColor { get; set; }
Property Value
Formula
Set: fills the range with the formula relative to the top-left cell. Relative references are shifted for each cell (like Excel fill: "=B1C1" → "=B2C2" in the second row). Get: the top-left cell's formula.
public string Formula { get; set; }
Property Value
Italic
Italic text in every cell of the range.
public bool Italic { get; set; }
Property Value
Locked
Makes every cell in the range read-only.
public bool Locked { get; set; }
Property Value
Row
First row of the range.
public int Row { get; }
Property Value
RowCount
Number of rows in the range.
public int RowCount { get; }
Property Value
Strikeout
Struck-out text in every cell of the range.
public bool Strikeout { get; set; }
Property Value
Underline
Underlined text in every cell of the range.
public bool Underline { get; set; }
Property Value
Value
Set: the same value in every cell of the range. Get: the top-left cell's value.
public object Value { get; set; }
Property Value
VerticalAlignment
Vertical alignment (Nothing uses the column setting).
public NoxVerticalAlignment? VerticalAlignment { get; set; }
Property Value
WrapText
Word wrap (Nothing uses the column setting).
public bool? WrapText { get; set; }
Property Value
- bool?
Methods
Clear()
Clears the values.
public void Clear()
ClearStyle()
Clears the formatting (colors, bold, read-only).
public void ClearStyle()
Merge()
Merges the range into one cell (the value is the top-left cell's).
public void Merge()
SetOutline(Color, int)
Border around the outside of the range only (inner cell borders are unchanged).
public void SetOutline(Color color, int width)
Parameters
Unmerge()
Removes merges within the range.
public void Unmerge()