如何更改WorkSheet单元格的文本颜色。在c#中 [英] how can change the text color of WorkSheet cell. in c#
本文介绍了如何更改WorkSheet单元格的文本颜色。在c#中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的get_range方法无效,那么如何更改工作表单元格中TEXT的颜色。
从下面的评论复制的其他信息
_ worksheet.Cells [ 1 , 1 ] = 风险名称;
我想要更改风险名称ie.blue字体的颜色。
从以下评论中复制的其他信息02
i也尝试为woksheet的颜色着色但是当我试图做的时候
// _worksheet.get_Range(_worksheet.Cells [1,1],_ worksheet.Cells [1,8])。Font.Bold = true;
然后我是错误对象Doest不包含get_Range的定义
解决方案
CodeProject链接
如何设置字体颜色在Excel-Cell-Using-C#
[ ^ ]
有点相似
http://stackoverflow.com/questions/2452417/cell-color-changing-in-excel-using-c -sharp [ ^ ]
my get_range method is not working then how can change the color of "TEXT" in present in worksheet cell .
additional information copied from comment below
_worksheet.Cells[1, 1] = "Risk Name";
i want to change the color of "risk name" ie.blue font.
additional information copied from comment below 02
i also try to color a ROW of woksheet but when i m trying to do
// _worksheet.get_Range(_worksheet.Cells[1, 1], _worksheet.Cells[1, 8]).Font.Bold = true;
then i am geting the error Object Doest Not contain definition for get_Range
解决方案
CodeProject link
How-to-Set-font-color-in-Excel-Cell-Using-C#
[^]
Somewhat similar
http://stackoverflow.com/questions/2452417/cell-color-changing-in-excel-using-c-sharp[^]
这篇关于如何更改WorkSheet单元格的文本颜色。在c#中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文