回复 1楼summonyyq的帖子
请尝试以下代码看能否满足您的需求:
- FarPoint.Web.Spread.TextCellType t = new FarPoint.Web.Spread.TextCellType();
- //t.CssClass = "CssStyle1";
- t.ShowEditor = true;
- FpSpread1.ActiveSheetView.Cells[0, 0].CellType = t;
- FpSpread1.ActiveSheetView.Cells[0, 0].VerticalAlign = VerticalAlign.Middle;
- FpSpread1.ActiveSheetView.Cells[0, 0].BackColor = Color.LightBlue;
- FpSpread1.ActiveSheetView.SetText(0, 0, "I'm yellow");
- FpSpread1.ActiveSheetView.Rows[0].Height = 200;
复制代码 |