public ExcelFormatter(ExcelCellName leftTopCell, ExcelCellName rightTopCell, ExcelWorksheet worksheetParent) { IsDisposed = false; RightTopCell = rightTopCell; LeftTopCell = leftTopCell; WorksheetParent = worksheetParent; Range = worksheetParent.Worksheet.Range[leftTopCell.ToCellName(), rightTopCell.ToCellName()]; }
private bool Equals(ExcelCellName other) { return(Equals(ColumnLetter, other.ColumnLetter) && RowNumber == other.RowNumber); }
public ExcelFormatter GetFormatterAt(ExcelCellName leftTopCell, ExcelCellName rightBottomCell) { return(new ExcelFormatter(leftTopCell, rightBottomCell, this)); }
public ExcelFormatter GetFormatterAt(ExcelCellName cell) { return(GetFormatterAt(cell, cell)); }
public ExcelCell GetCellAt(ExcelCellName excelCell) { return(GetCellAt(excelCell.RowNumber, excelCell.ColumnLetter.ToColumnNumber())); }