转载: http://hi.baidu.com/qdseashore/item/27d2a7de219ba2df241f407a

 

(转)C# 操作 Excel 颜色索引对照

Cells(1, 1).Interior.ColorIndex = 37 '将A1单元格内部填充颜色设置为淡蓝色Cells(2, 1).Font.ColorIndex = 22     '将A2单元格字体颜色设置为珊瑚红Cells(3, 1).Borders.ColorIndex = 40 '将A3单元格边框设置为茶色

相关文章:

  • 2022-12-23
  • 2022-02-23
  • 2022-12-23
  • 2021-07-31
  • 2022-12-23
猜你喜欢
  • 2021-08-24
  • 2022-12-23
  • 2021-08-06
  • 2022-12-23
  • 2021-08-06
相关资源
相似解决方案