回复 5楼garfieldzf8的帖子
更改特定单元格字体大小设置方法如下:
- FarPoint.Web.Spread.Cell mycell;
- mycell = FpSpread1.Cells[0, 0];
- mycell.Font.Bold = true;
- mycell.Font.Name = "ComicSansMS";
- mycell.Font.Size = 120;
- FpSpread1.ActiveSheetView.SetValue(0, 0, "Font");
复制代码
更改表单所有单元格的字体代码如下:
- FarPoint.Web.Spread.StyleInfo altrowstyle = new FarPoint.Web.Spread.StyleInfo();
- altrowstyle.Font.Bold = true;
- altrowstyle.Font.Size = 100;
- FarPoint.Web.Spread.Model.DefaultSheetStyleModel altrowmodel = new FarPoint.Web.Spread.Model.DefaultSheetStyleModel(1000,
- 7);
- FpSpread1.Sheets[0].StyleModel = altrowmodel;
复制代码
为了提高论坛服务质量,请对我本次的服务做出评价。谢谢
|