你好,请参考以下代码:
- FarPoint.Win.Spread.CellType.TextCellType text = new FarPoint.Win.Spread.CellType.TextCellType();
- text.Multiline = true;
- this.fpSpread1.ActiveSheet.Columns[0].Width = 100;
- this.fpSpread1.ActiveSheet.Rows[0].Height = 100;
- this.fpSpread1.ActiveSheet.Cells[0, 0].CellType = text;
- this.fpSpread1.ActiveSheet.Cells[0, 0].Text = "1.内容***\n2.内容******\n3.内容***\n";
复制代码 效果图:
png
|