コード例 #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]);
                }
            }
        }
コード例 #2
0
 internal override void IterateAndApply(IterateFunction ifFunc)
 {
 }
コード例 #3
0
ファイル: Styles.cs プロジェクト: ChiangHanLung/PIC_VDS
		internal abstract void IterateAndApply(IterateFunction ifFunc);
コード例 #4
0
ファイル: Styles.cs プロジェクト: rodrigofigueiredo9/SIMLAM
 internal abstract void IterateAndApply(IterateFunction ifFunc);