回复 1楼xuxj的帖子
请使用以下代码测试:
- //设置 GrayArea 背景色
- this.fpSpread1.ActiveSheet.RowCount = 10;
- this.fpSpread1.ActiveSheet.GrayAreaBackColor = Color.Red;
- //设置文本对齐方式
- this.fpSpread1.ActiveSheet.DefaultStyle.HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
- //设置只读
- this.fpSpread1.ActiveSheet.DefaultStyle.Locked = true;
复制代码 |