internal override void IterateAndApply(IterateFunction applyStyleFunction) { if (CellFrom == null) { return; } if (CellTo == null) { applyStyleFunction(CellFrom); return; } int rowFrom = CellFrom.ParentRow.RowIndex; int rowTo = CellTo.ParentRow.RowIndex; int cellIndexFrom = CellFrom.CellIndex; int cellIndexTo = CellTo.CellIndex; Worksheet ws = CellFrom.ParentRow.ParentSheet; for (int i = rowFrom; i <= rowTo; i++) { for (int j = cellIndexFrom; j <= cellIndexTo; j++) { applyStyleFunction(ws[j, i]); } } }
internal override void IterateAndApply(IterateFunction ifFunc) { }
internal abstract void IterateAndApply(IterateFunction ifFunc);