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