可以通过设置CellType来实现换行:
- FarPoint.Win.Spread.CellType.GeneralCellType gct = new FarPoint.Win.Spread.CellType.GeneralCellType();
- gct.WordWrap = true;
- this.fpSpread1.ActiveSheet.Columns[0].CellType = gct;
- this.fpSpread1.ActiveSheet.Cells[0, 0].Value = "152120/152127/152123";
复制代码 |