Beispiel #1
0
        public ExcelFormatter(ExcelCellName leftTopCell, ExcelCellName rightTopCell, ExcelWorksheet worksheetParent)
        {
            IsDisposed = false;

            RightTopCell = rightTopCell;
            LeftTopCell = leftTopCell;
            WorksheetParent = worksheetParent;

            Range = worksheetParent.Worksheet.Range[leftTopCell.ToCellName(), rightTopCell.ToCellName()];
        }
Beispiel #2
0
        internal ExcelCell(ushort row, ushort column, ExcelWorksheet parent)
        {
            if (row <= 0)
                throw new ArgumentException("Row must be greater than 0!");
            if (column <= 0)
                throw new ArgumentException("Column must be greater than 0!");

            Row = row;
            Column = column;
            WorksheetParent = parent;
        }