你好,请看以下代码:
FarPoint.Win.Spread.CellType.TextCellType txt = new FarPoint.Win.Spread.CellType.TextCellType();
txt.WordWrap = true;
txt.Multiline = true;
txt.MaxLength = 5000;
fpSpread1.Sheets[0].Columns[0].CellType = txt;
fpSpread1.Sheets[0].Columns[1].CellType = txt;
fpSpread1.Sheets[0].Columns[2].CellType = txt;
fpSpread1.Sheets[0].Cells[0, 0].Text = "01";
fpSpread1.Sheets[0].Cells[0, 1].Text = "25657319";
fpSpread1.Sheets[0].Cells[0, 2].Text = "YCC-035113 红花色/淡紫色/紫色";
fpSpread1.Sheets[0].Rows[0].Height = fpSpread1.Sheets[0].GetPreferredRowHeight(0);
请看图下,这段内容:"YCC-035113 红花色/淡紫色/紫色"没有显示完整,不知道为什么,请帮助解答,谢谢! |
|