回复 1楼xiafu568的帖子
可以实现自动换行,但是高度目前无法自适应:
- FarPoint.Win.Spread.CellType.TextCellType txt = new FarPoint.Win.Spread.CellType.TextCellType();
- txt.CharacterCasing = CharacterCasing.Upper;
- txt.CharacterSet = FarPoint.Win.Spread.CellType.CharacterSet.Ascii;
- txt.HotkeyPrefix = System.Drawing.Text.HotkeyPrefix.Show;
- txt.MaxLength = 40;
- txt.Multiline = true;
- txt.WordWrap = true;
- txt.ScrollBars = ScrollBars.Vertical;
- txt.Static = true;
- fpSpread1.Sheets[0].ColumnHeader.Cells[0, 0].CellType = txt;
- fpSpread1.Sheets[0].ColumnHeader.Cells[0, 0].Text = "This is a text cell. It can provide a wide range of" + " functionality for handling";
复制代码 |