Exemplo n.º 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]);
                }
            }
        }
Exemplo n.º 2
0
 internal override void IterateAndApply(IterateFunction ifFunc)
 {
 }
Exemplo n.º 3
0
		internal abstract void IterateAndApply(IterateFunction ifFunc);
Exemplo n.º 4
0
 internal abstract void IterateAndApply(IterateFunction ifFunc);