Excel Interior.ColorIndex色彩列表
2015-11-25 18:22
423 查看
Microsoft.Office.Interop.Excel.Range range;
for (int i = 0; i < dt.Columns.Count; i++) { worksheet.Cells[1, i + 1] = dt.Columns[i].ColumnName; range = (Microsoft.Office.Interop.Excel.Range)worksheet.Cells[1, i + 1]; //设置区域背景色 range.Interior.ColorIndex = 15; }
相关文章推荐
- ASP.NET MVC 开源项目学习之ProDinner (三)
- Linux + Apache + PHP 环境搭建
- 神奇算式 - 蓝桥杯(java版)
- android shape使用
- Mysql中DML语句对表空间干了什么?
- 解决Unsupported major.minor version 51.0错误
- 二叉树建立出现的指针问题
- 项目中引入TabPageIndicator报错,无法正常显示样式
- 识别手机访问的js代码
- 克隆或复制VMware虚拟机后,Linux系统eth0消失,显示eth1
- iOS —— FFmpeg移植
- 常用的head 标签
- 五个问题让你读懂H5营销
- linux__查看库中的函数
- 内部存储Internal store
- 关于在ViewPage 中显示ImageView的坑
- Meteor 响应式
- 搭建Android x86_64及arm64-v8a操作步骤
- iOS---修改Xcode7建立的工程名称
- CI(-)框架结构