FarPoint.Win.Spread.CellType.TextCellType txt = new FarPoint.Win.Spread.CellType.TextCellType();
txt.WordWrap = true;
txt.Multiline = true;
fpSpread1.Sheets[0].Columns[0].CellType = txt;
fpSpread1.Sheets[0].Cells[0, 0].Text = "fdasfafadfadfafadfafdafafdfafa1111111111111111111111111111111";
fpSpread1.Sheets[0].AddSpanCell(0, 0, 1, 3);
fpSpread1.Sheets[0].Rows[0].Height = fpSpread1.Sheets[0].GetPreferredRowHeight(0);
你好,我使用以上代码段,得到的行高比我需要的行高多出了许多,好像fpSpread1.Sheets[0].GetPreferredRowHeight(0)这个方法未考虑合并列的情况,请问有什么方法可以解决,谢谢! |