Filling cells is an extension of
paste where a source area gets duplicated to a larger area multiple times both horizontally and vertically, hence the
fill.
Creating a range fillAs an example, you could have content at row 3 that according to some scenario needs to be duplicated in rows 6 to 8. If the paste/pasteTo function is used, this needs iteration over rows 6 to 8. But using fill, a single statement will do :
C/C++ code |
worksheet->Rows[L"3:3"]->Range->FillTo(worksheet, worksheet->Rows[L"6:8"]->Range, xlsgen::pasteoption_valuesandformattingandformulas);
|
Another example is range C3:F4 that gets used in order to fill range B5:Z8 of another worksheet :
C/C++ code |
worksheet->NewRange(L"C3:F4")->FillTo(worksheet2, worksheet2->NewRange(L"B5:Z8"), xlsgen::pasteoption_valuesandformattingandformulas);
|