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