回复 1楼moriya的帖子
以下代码是否是你需要的功能:
- private void Form1_Load(object sender, EventArgs e)
- {
- FarPoint.Win.Spread.CellType.EnhancedColumnHeaderRenderer echr = new EnhancedColumnHeaderRenderer();
- echr.WordWrap = false;
- fpSpread1.ActiveSheet.ColumnHeader.Columns[0].Renderer = echr;
- fpSpread1.ActiveSheet.ColumnHeader.Columns[0].BackColor = Color.Red;
- fpSpread1.ActiveSheet.ColumnHeader.Cells[0, 0].Text = "asdfasd asdf asdf asdf asdf asdf ";
- }
复制代码 |