回复 1楼hurong的帖子
hurong 你好,
设置方法如下:
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack)
- {
- return;
- }
- FarPoint.Web.Spread.Background bg = new FarPoint.Web.Spread.Background();
- bg.SelectedBackgroundImageUrl = "picture/Winter.jpg";
- bg.BackgroundImageUrl = "picture/Image.bmp";
- bg.Enable = true;
- bg.BackgroundAttachment = "fixed";// inherit, scroll.
- bg.BackgroundPosition = "50% 50%";
- bg.BackgroundRepeat = "repeat-x";
- FarPoint.Web.Spread.StyleInfo style = new FarPoint.Web.Spread.StyleInfo();
- style.Background = bg;
- FpSpread1.Sheets[0].ColumnHeader.DefaultStyle.Background = bg;
- }
复制代码 |