GcSpreadSheet1.CanUserUndo = true;
GcSpreadSheet1.Sheets[0].SetValue(10, 5, 1);
var srange = new GrapeCity.Xaml.SpreadSheet.Data.CellRange(10, 5, 1, 1);
var frange = new GrapeCity.Xaml.SpreadSheet.Data.CellRange(11, 5, 3, 1);
var dragFillExtent = new GrapeCity.Xaml.SpreadSheet.UI.UndoRedo.DragFillExtent(srange, frange, GrapeCity.Xaml.SpreadSheet.Data.AutoFillType.CopyCells, GrapeCity.Xaml.SpreadSheet.Data.FillDirection.Down);
var action = new GrapeCity.Xaml.SpreadSheet.UI.UndoRedo.DragFillUndoAction(GcSpreadSheet1.Sheets[0], dragFillExtent);
GcSpreadSheet1.DoCommand(action);
GcSpreadSheet1.CanUserUndo = True
GcSpreadSheet1.Sheets(0).SetValue(10, 5, 1)
Dim srange As New GrapeCity.Xaml.SpreadSheet.Data.CellRange(10, 5, 1, 1)
Dim frange As New GrapeCity.Xaml.SpreadSheet.Data.CellRange(11, 5, 3, 1)
Dim dragFillExtent As New GrapeCity.Xaml.SpreadSheet.UI.UndoRedo.DragFillExtent(srange, frange, GrapeCity.Xaml.SpreadSheet.Data.AutoFillType.CopyCells, GrapeCity.Xaml.SpreadSheet.Data.FillDirection.Down)
Dim action As New GrapeCity.Xaml.SpreadSheet.UI.UndoRedo.DragFillUndoAction(GcSpreadSheet1.Sheets(0), dragFillExtent)
GcSpreadSheet1.DoCommand(action)