回复 1楼weifei0101的帖子
可以使用RichTextCellType 来实现:
- RichTextBox rt = new RichTextBox();
- rt.Text = "测试";
- rt.Select(0, this.richTextBox1.TextLength);
- rt.Font = new Font("Arial", 12, FontStyle.Strikeout);
-
- FarPoint.Win.Spread.CellType.RichTextCellType richtype = new FarPoint.Win.Spread.CellType.RichTextCellType();
- this.fpSpread1.ActiveSheet.Columns[0].CellType = richtype;
- this.fpSpread1.ActiveSheet.Cells[0, 0].Value = rt.Rtf;
复制代码 |