hecheng5083670 你好,
1.Spread 默认情况下单元格文本即为左对齐,同时也可以设置 TextCellType 属性实现左对齐。
2.可以把合并单元格类型设置为 TextCellType ,实现。
请使用以下代码测试:
- FarPoint.Win.Spread.CellType.TextCellType textCellType1 = new FarPoint.Win.Spread.CellType.TextCellType();
- textCellType1.TextOrientation = FarPoint.Win.TextOrientation.TextHorizontal;
- textCellType1.Multiline = true;
- textCellType1.WordWrap = true;
- this.fpSpread1_Sheet1.Cells.Get(0, 0).CellType = textCellType1;
- this.fpSpread1_Sheet1.Cells.Get(0, 0).RowSpan = 2;
- this.fpSpread1_Sheet1.Cells.Get(0, 0).Value = "南通呈业订单汇总表南通呈业订单汇总表南通呈业订单汇总表南通呈业订单汇总表";
复制代码 |