回复 1楼summonyyq的帖子
你好,
Spread ColumnHeader 背景是用图片填充的,所以会有上述问题发生,可以定制 Sheet 的 ColumnHeader.DefaultStyle 去自定义背景图片,代码如下:
- FarPoint.Web.Spread.Background bg = new FarPoint.Web.Spread.Background();
- bg.SelectedBackgroundImageUrl = "images/BackGround.png";
- bg.BackgroundImageUrl = "images/BackGround.png";
- bg.Enable = true;
- FarPoint.Web.Spread.StyleInfo darkstyle = new FarPoint.Web.Spread.StyleInfo();
- darkstyle.Background =bg;
- // Apply the new style.
- FpSpread1.ActiveSheetView.ColumnHeader.DefaultStyle = darkstyle;
- this.FpSpread1.Sheets[0].ColumnHeader.Height = 50;
复制代码
谢谢 |