示例#1
0
        private void CompareSameRange(PPTmpPage comparedPage, int rows, int cols)
        {
            string cellValue = null;
            string str2      = null;

            for (int i = 1; i <= rows; i++)
            {
                for (int j = 1; j <= cols; j++)
                {
                    cellValue = this.GetCellValue(i, j);
                    str2      = comparedPage.GetCellValue(i, j);
                    if (cellValue != str2)
                    {
                        if (((cellValue == "") && (str2 != "")) || ((cellValue != "") && (str2 == "")))
                        {
                            this.SetFontColor(this.GetRange(i, j), "Red");
                            comparedPage.SetFontColor(comparedPage.GetRange(i, j), "Red");
                        }
                        else
                        {
                            this.SetFontColor(this.GetRange(i, j), "Blue");
                            comparedPage.SetFontColor(comparedPage.GetRange(i, j), "Blue");
                        }
                    }
                }
            }
        }
示例#2
0
 private void SetDefaultColor(PPTmpPage comparedPage)
 {
     this.SetFontColor(this.GetRange("A1", PPCConvert.RowCol2Address(this.countRows, this.countColumns)), "Black");
     comparedPage.SetFontColor(comparedPage.GetRange("A1", PPCConvert.RowCol2Address(comparedPage.countRows, comparedPage.countColumns)), "Black");
 }