我现在是这样设置的,但是会省略末位的0
FarPoint.Win.Spread.CellType.PercentCellType prctcell = new FarPoint.Win.Spread.CellType.PercentCellType();
prctcell.PercentSign = "%";
prctcell.PositiveFormat = FarPoint.Win.Spread.CellType.PercentPositiveFormat.PercentAfterWithSpace;
prctcell.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
prctcell.DecimalPlaces = 2;
col.CellType = prctcell; |