1

使用 c# 向工作表添加条件格式时
如何设置正在使用的 IconSet?
下面目前不工作。它给了我一组默认图标,但不是我想要的。

Excel.IconSetCondition cfIconSet =
    (Excel.IconSetCondition)excelWorksheet.get_Range(cellNumber, cellNumber)
      .FormatConditions
      .AddIconSetCondition();
cfIconSet.IconSet = Excel.XlIconSet.xl3Flags;
4

1 回答 1

1

解决了

cfIconSet.IconSet = cfIconSet.IconSet(Excel.XlIconSet.xl3Flags);
于 2013-03-06T19:35:04.053 回答