相关代码:
FarPoint.Web.Spread.NamedStyle backstyle1 = new FarPoint.Web.Spread.NamedStyle("BlueBack");
backstyle1.Font.Bold = true;
FarPoint.Web.Spread.NamedStyle backstyle2 = new FarPoint.Web.Spread.NamedStyle("OrangeText", "BlueBack");
backstyle2.Font.Size = new FontUnit(14);
backstyle2.BackColor = Color.Yellow;
fsTest.NamedStyles.Add(backstyle1);
fsTest.NamedStyles.Add(backstyle2);
fsTest.ActiveSheetView.Cells[2, 2, 4, 4].StyleName = "BlueBack";
fsTest.ActiveSheetView.Cells[5, 5, 7, 7].StyleName = "OrangeText";
显示的字体样式,都应该加粗,但黄色部分没有加粗,是不是字体样式会覆盖?请问如何解决?谢谢! |
|