您可以参考下下面代码,新建个celltpye,重写GetReservedCursor
- public class myButtonCelltypeChangedCursor : FarPoint.Win.Spread.CellType.ButtonCellType
- {
- public override Cursor GetReservedCursor(object o)
- {
- return Cursors.Hand;
- }
- }
- fpSpread1.ActiveSheet.Rows.Count = 5;
- fpSpread1.ActiveSheet.Columns.Count = 2;
- fpSpread1.ActiveSheet.Columns[1].Width = 200;
- myButtonCelltypeChangedCursor bttncell = new myButtonCelltypeChangedCursor();
- bttncell.ShadowSize = 3;
- bttncell.Text = "ButtonCellType";
-
复制代码 |