数据换行:
- FarPoint.Web.Spread.TextCellType txtCellType = new FarPoint.Web.Spread.TextCellType();
- txtCellType.Multiline = true;
- txtCellType.AllowWrap = true;
- this.FpSpread1.ActiveSheetView.Columns[1].CellType = txtCellType;
- this.FpSpread1.ActiveSheetView.Cells[0, 1].Value = "这是一个测试文本内容";
复制代码
按钮的宽度会根据列宽自动改变,但是按钮的高度不能手动修改 |