spread.options.allowUndo = true; var srange = new GC.Spread.Sheets.Range(10, 5, 1, 1); var frange = new GC.Spread.Sheets.Range(11, 5, 5, 1); spread.commandManager().execute({cmd: "fill", sheetName: "Sheet1", startRange: srange, fillRange: frange, autoFillType: GC.Spread.Sheets.Fill.AutoFillType.fillSeries, fillDirection: GC.Spread.Sheets.Fill.FillDirection.down });