回复 1楼guxinghan的帖子
设置区域单元格背景色:
- NamedStyle si = new NamedStyle("test");
- si.BackColor=System.Drawing.Color.Red;
- this.FpSpread1.ActiveSheetView.NamedStyles.Add(si);
- this.FpSpread1.ActiveSheetView.Cells[0, 0, 2, 2].StyleName = "test";
复制代码
我通过下面这段代码可以正常小时 9,999.99,请测试:
- FarPoint.Web.Spread.GeneralCellType g = new FarPoint.Web.Spread.GeneralCellType();
- System.Globalization.NumberFormatInfo nfi = new System.Globalization.NumberFormatInfo();
- nfi.NumberDecimalDigits = 3;
- nfi.NumberDecimalSeparator = ",";
- g.NumberFormat = nfi;
- FpSpread1.ActiveSheetView.Cells[0, 0].CellType = g;
- FpSpread1.ActiveSheetView.Cells[0, 0].Value = 9999.99;
复制代码 |