我正在尝试在特定单元格处将一段文本加粗,但不能。这是我正在使用的代码:
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);