您可以通过DecimalPlaces属性调整小数点后的占位符,通过DecimalSeparator调整小数位分隔符等等。例如:
- FarPoint.Win.Spread.CellType.NumberCellType nmbrcell = new FarPoint.Win.Spread.CellType.NumberCellType();
- nmbrcell.DecimalSeparator = ",";
- nmbrcell.DecimalPlaces = 5;
- nmbrcell.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.UseRegional;
- nmbrcell.MaximumValue = 500.000;
- nmbrcell.MinimumValue = -10.000;
- fpSpread1.ActiveSheet.Cells[1, 1].CellType = nmbrcell;
复制代码 |