public ScriptHost(BaseScriptEngine engine) { Engine = engine; Book = new Book.SCBook(this); Spreadsheet = new Spreadsheet.SCSpreadsheet(this); Grid = new Grid.SCGrid(this); Heap = new Heap.SCHeap(this); }
protected virtual void DoMerge(SCSpreadsheet spreadsheet, SpreadsheetOptions options) { var spread = options?.Spreadsheet?.Workbook ?? Workbook; spread.Append(spreadsheet.Workbook); }
public SCSpreadsheet Merge(SCSpreadsheet spreadsheet, SpreadsheetOptions options = null) { ExecuteSynchronized(options, () => DoMerge(spreadsheet, options)); return(this); }