【发布时间】:2015-05-19 23:00:58
【问题描述】:
我正在尝试在特定单元格中将一段文本加粗,但无法做到。 这是我正在使用的代码:
Style boldStyle = workBook.CreateStyle();
boldStyle.BackgroundColor = Color.Red;
StyleFlag boldStyleFlag = new StyleFlag();
boldStyleFlag.HorizontalAlignment =true ;
boldStyleFlag.FontBold = true;
Cell c = workSheetIntroduction.Cells["B1"];
c.SetStyle(boldStyle, boldStyleFlag);
【问题讨论】:
标签: c# aspose aspose-cells