你好,可以通过 FarPoint.Web.Spread.Background 类进行- FarPoint.Web.Spread.Background bg = new FarPoint.Web.Spread.Background();
- bg.SelectedBackgroundImageUrl = "images/无标题.png";
- bg.BackgroundImageUrl = "images/无标题.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;
复制代码 效果图:
png
详细做法,请参考帮助文档,Background 类章节 |