コード例 #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);
 }
コード例 #2
0
        protected virtual void DoMerge(SCSpreadsheet spreadsheet, SpreadsheetOptions options)
        {
            var spread = options?.Spreadsheet?.Workbook ?? Workbook;

            spread.Append(spreadsheet.Workbook);
        }
コード例 #3
0
 public SCSpreadsheet Merge(SCSpreadsheet spreadsheet, SpreadsheetOptions options = null)
 {
     ExecuteSynchronized(options, () => DoMerge(spreadsheet, options));
     return(this);
 }