CellArea
public readonly struct CellArea
Namespace SharpCell.Grid · package SharpCell.Grid
A rectangle of cells, from its top-left to its bottom-right cell; rows and columns from 1.
Constructors
CellArea(int, int, int, int)
public CellArea(int FirstRow, int FirstColumn, int LastRow, int LastColumn)
A rectangle of cells, from its top-left to its bottom-right cell; rows and columns from 1.
Parameters
FirstRow: The top row.FirstColumn: The left column.LastRow: The bottom row.LastColumn: The right column.
Properties
FirstColumn
public int FirstColumn { get; init; }
The left column.
FirstRow
public int FirstRow { get; init; }
The top row.
LastColumn
public int LastColumn { get; init; }
The right column.
LastRow
public int LastRow { get; init; }
The bottom row.
Methods
Contains(int, int)
public bool Contains(int row, int column)
Whether the cell is inside the area.