惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

月光博客
月光博客
D
Docker
腾讯CDC
J
Java Code Geeks
大猫的无限游戏
大猫的无限游戏
The Cloudflare Blog
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
博客园 - 三生石上(FineUI控件)
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
IT之家
IT之家
WordPress大学
WordPress大学
M
MIT News - Artificial intelligence
爱范儿
爱范儿
Microsoft Azure Blog
Microsoft Azure Blog
Vercel News
Vercel News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
小众软件
小众软件
N
Netflix TechBlog - Medium
T
Tailwind CSS Blog
Engineering at Meta
Engineering at Meta
博客园 - 【当耐特】

博客园 - 老飞飞

sql查找带百分号的数据 Jquery - 添加属性、添加class、添加Css 加载数据提示Min(5) must be less than or equal to max(-1) in Range object C# 中文件Stream转换成byte[]时候的一个注意事项 sql server的一个BUG? Js中日期处理的问题 SQL的经验教训 excle 分数排名 要听老人言,金钱用decimal RFC的表结构前面字段修改之后,持续执行的外围代码需要重启 找到子表中超过500条记录的数据 找到了一个动态调整css的方法 Sql必会-求用户连续登录天数 easyui gridview中toolbar中按钮的显示与否 列轉行,再行轉列 excel 2024的一个奇怪问题 乱七八糟的东西 [转]the collation conflict between "chinese_prc_ci_as" and "sql_latin1_general_cp1_ci_as" in the equal to operation Json中的字串为json文字的返回方法 关于C#中目录的一个小问题 A页面即时传值给B页面
NPOI设定某个格子的样式
老飞飞 · 2024-09-16 · via 博客园 - 老飞飞
                XSSFCellStyle headStyle = workBook.CreateCellStyle() as XSSFCellStyle;
                headStyle.Alignment = NPOI.SS.UserModel.HorizontalAlignment.Center;
                XSSFFont font = workBook.CreateFont() as XSSFFont;
                font.FontHeightInPoints = 10;
                font.Boldweight = 700;
                font.Color = IndexedColors.Red.Index;
                headStyle.SetFont(font);


                    IRow gapRow = sheet.CreateRow(lineCount);
                    gapRow.CreateCell(3 + i).SetCellValue(line4[i]);
                    if (line4[i] != 0)
                    {
                        gapRow.GetCell(3 + i).CellStyle = headStyle;
                    }               

  主要问题是两个as不能省。

posted @ 2024-09-16 21:26  老飞飞  阅读(60)  评论()    收藏  举报