sakeryu 你好,
可以使用 Spread GeneralCellType 去 实现该功能,测试代码:
- FarPoint.Win.Spread.CellType.GeneralCellType generalCellType1 = new FarPoint.Win.Spread.CellType.GeneralCellType();
- generalCellType1.NumberFormat = ((System.Globalization.NumberFormatInfo)(new System.Globalization.CultureInfo("zh-CN", false).NumberFormat.Clone()));
- generalCellType1.NumberFormat.NumberGroupSeparator = "|";
- generalCellType1.NumberFormat.NumberGroupSizes = new int[] {1};
- this.fpSpread1.Sheets[0].Cells[0, 0].CellType = generalCellType1;
- this.fpSpread1.Sheets[0].Cells[0, 0].Value = 123456;
复制代码 |