回复 1楼wangwuliSpread的帖子
参考代码:
- //特定行前景色,即文字颜色
- this.FpSpread1.ActiveSheetView.Rows[0].ForeColor = Color.Red;
- //特定行背景色
- this.FpSpread1.ActiveSheetView.Rows[0].BackColor = Color.Yellow;
- //以表单为单位设置
- this.FpSpread1.ActiveSheetView.DefaultStyle.BackColor = Color.Yellow;
- this.FpSpread1.ActiveSheetView.DefaultStyle.ForeColor= Color.Blue;
复制代码 |