您好,win xp系统 ie8浏览器样式问题,如图,取值后,重新给赋值,字体就会出现样式问题,蓝色框内是重新赋值了的,字体有重叠现象;
核心代码如下;
- Font ft = fpSpread1.Sheets[0].Cells[item.Cells].Font;
- Color fc = fpSpread1.Sheets[0].Cells[item.Cells].ForeColor;
- //RichTextBox rtb = changeRichText(item.Value, ft,fc);
- RichTextBox rtb = new RichTextBox();
- rtb.Font = ft;
- rtb.ForeColor = fc;
- rtb.SelectedText = "温度系数 Kt";
- var celltype = new FarPoint.Win.Spread.CellType.RichTextCellType();
- celltype.WordWrap = true;
- fpSpread1.Sheets[0].Cells[item.Cells].CellType = celltype;
- fpSpread1.Sheets[0].Cells[item.Cells].Value = "";
- fpSpread1.Sheets[0].Cells[item.Cells].Value = rtb.Rtf;
- fpSpread1.Sheets[0].Cells[item.Cells].Row.Height = fpSpread1.Sheets[0].Cells[item.Cells].Row.Height + 10;
复制代码
|
|