设置button celltype 的button color
- FarPoint.Win.Spread.CellType.ButtonCellType bttncell = new FarPoint.Win.Spread.CellType.ButtonCellType();
- bttncell.ButtonColor = Color.Cyan;
- bttncell.DarkColor = Color.DarkCyan;
- bttncell.LightColor = Color.AliceBlue;
- bttncell.ShadowSize = 3;
- bttncell.Text = "Click and hold...";
- bttncell.TextDown = "...you can see how words go to multiple lines. Now let go.";
- bttncell.TextColor = Color.Green;
- bttncell.WordWrap = true;
- bttncell.UseVisualStyleBackColor = false;
- fpSpread1.Sheets[0].Cells[3,2].CellType = bttncell;
复制代码 |