你好,我们的服务时间是 9:00-18:00,所以没有能即时处理你的问题,给你带来不便,非常抱歉.
我通过下面代码进行测试:没能重现出你的问题:-
- //前台代码
- <style type="text/css">
- .textcelltype{ background-color:Cyan; align:left;}
- </style>
- //后台代码
- FarPoint.Web.Spread.TextCellType textType = new FarPoint.Web.Spread.TextCellType();
- textType.CssClass = "textcelltype";
- this.FpSpread1.Sheets[0].Columns[0].CellType = textType;
- this.FpSpread1.Sheets[0].Columns[0].HorizontalAlign = HorizontalAlign.Center;
- this.FpSpread1.Sheets[0].Columns[0].BackColor = System.Drawing.Color.Red;
- this.FpSpread1.Sheets[0].Cells[0, 0].Text = "测试";
复制代码 效果图:
png
Demo:
backgroundfortextcelltype.zip
(1.4 MB, 下载次数: 409)
|