Exemple #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()];
        }
Exemple #2
0
 private bool Equals(ExcelCellName other)
 {
     return(Equals(ColumnLetter, other.ColumnLetter) && RowNumber == other.RowNumber);
 }
Exemple #3
0
 public ExcelFormatter GetFormatterAt(ExcelCellName leftTopCell, ExcelCellName rightBottomCell)
 {
     return(new ExcelFormatter(leftTopCell, rightBottomCell, this));
 }
Exemple #4
0
 public ExcelFormatter GetFormatterAt(ExcelCellName cell)
 {
     return(GetFormatterAt(cell, cell));
 }
Exemple #5
0
 public ExcelCell GetCellAt(ExcelCellName excelCell)
 {
     return(GetCellAt(excelCell.RowNumber, excelCell.ColumnLetter.ToColumnNumber()));
 }