Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
        protected virtual void DoMerge(SCSpreadsheet spreadsheet, SpreadsheetOptions options)
        {
            var spread = options?.Spreadsheet?.Workbook ?? Workbook;

            spread.Append(spreadsheet.Workbook);
        }
Exemplo n.º 3
0
 public SCSpreadsheet Merge(SCSpreadsheet spreadsheet, SpreadsheetOptions options = null)
 {
     ExecuteSynchronized(options, () => DoMerge(spreadsheet, options));
     return(this);
 }