蜂蜜柚子茶 发表于 2019-11-20 16:42:16

表格的撤销和重做要怎么实现?

如题,表格的撤销和重做要怎么做?

dexteryao 发表于 2019-11-20 22:50:01

请参考gcSpreadSheet1.CanUserUndo = true;
private void button1_Click(object sender, RoutedEventArgs e)
      {
GrapeCity.Windows.SpreadSheet.UI.UndoRedo.RowGroupExtent group = new GrapeCity.Windows.SpreadSheet.UI.UndoRedo.RowGroupExtent(3, 5);
GrapeCity.Windows.SpreadSheet.UI.UndoRedo.RowGroupUndoAction action = new GrapeCity.Windows.SpreadSheet.UI.UndoRedo.RowGroupUndoAction(this.gcSpreadSheet1.ActiveSheet, group);
this.gcSpreadSheet1.DoCommand(action);
gcSpreadSheet1.Invalidate();
      }

蜂蜜柚子茶 发表于 2019-11-22 09:49:44

谢谢

dexteryao 发表于 2019-11-22 22:33:28

:jy74a:
页: [1]
查看完整版本: 表格的撤销和重做要怎么实现?