internal ExcelCell(ExcelWorksheet worksheet, int row, int col)
{
if (row < 1 || col < 1)
throw new ArgumentException("Negative row and column numbers are not allowed");
if (row > ExcelPackage.MaxRows || col > ExcelPackage.MaxColumns)
throw new ArgumentException("Row or column numbers are out of range");
if (worksheet == null)
throw new ArgumentException("Worksheet must be set to a valid reference");
_row = row;
_col = col;
_worksheet = worksheet;
if (col < worksheet._minCol) worksheet._minCol = col;
if (col > worksheet._maxCol) worksheet._maxCol = col;
_sharedFormulaID = int.MinValue;
IsRichText = false;
}