Exemple #1
0
        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]);
                }
            }
        }
Exemple #2
0
 internal override void IterateAndApply(IterateFunction ifFunc)
 {
 }
Exemple #3
0
		internal abstract void IterateAndApply(IterateFunction ifFunc);
Exemple #4
0
 internal abstract void IterateAndApply(IterateFunction ifFunc);