OfficeOpenXml.ExcelCell.ExcelCell C# (CSharp) Method

ExcelCell() private method

A cell in the worksheet.
private ExcelCell ( OfficeOpenXml.ExcelWorksheet worksheet, int row, int col ) : System
worksheet OfficeOpenXml.ExcelWorksheet A reference to the worksheet
row int The row number
col int The column number
return System
        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;
        }

Same methods

ExcelCell::ExcelCell ( OfficeOpenXml.ExcelWorksheet worksheet, string cellAddress ) : System