[]
Fills a range of cells on this sheet by copying a specified range in the specified direction.
public void FillRange(int row, int column, int rowCount, int columnCount, int fillCount, FillDirection fillDirection)
Public Sub FillRange(row As Integer, column As Integer, rowCount As Integer, columnCount As Integer, fillCount As Integer, fillDirection As FillDirection)
Type | Name | Description |
---|---|---|
int | row | Row index of the starting cell in the range to copy |
int | column | Column index of the starting cell in the range to copy |
int | rowCount | Number of rows in the range to copy |
int | columnCount | Number of columns in the range to copy |
int | fillCount | Number of rows or columns into which to copy the specified range |
FillDirection | fillDirection | Direction of fill (to copy the specified range) |
Type | Condition |
---|---|
ArgumentOutOfRangeException | Specified row index is not valid; must be between -1 and the total number of rows |
ArgumentOutOfRangeException | Specified column index is not valid; must be between -1 and the total number of columns |
ArgumentOutOfRangeException | Specified row count is not valid; must be -1 or between 0 and the total number of rows minus the current row index |
ArgumentOutOfRangeException | Specified column count is not valid; must be -1 or between 0 and the total number of columns minus the current column index |
ArgumentOutOfRangeException | Specified number of rows or columns (fill count) is not valid; must be -1 or between 0 and the total number of rows or columns |
InvalidEnumArgumentException | Specified direction of the fill is not valid; must be one of the allowed enumeration settings |
Fills a range of cells on this sheet by copying a specified range in the specified direction.
public void FillRange(int row, int column, int rowCount, int columnCount, int fillCount, FillDirection fillDirection, bool dataOnly)
Public Sub FillRange(row As Integer, column As Integer, rowCount As Integer, columnCount As Integer, fillCount As Integer, fillDirection As FillDirection, dataOnly As Boolean)
Type | Name | Description |
---|---|---|
int | row | Row index of the starting cell in the range to copy |
int | column | Column index of the starting cell in the range to copy |
int | rowCount | Number of rows in the range to copy |
int | columnCount | Number of columns in the range to copy |
int | fillCount | Number of rows or columns into which to copy the specified range |
FillDirection | fillDirection | Direction of fill (to copy the specified range) |
bool | dataOnly | Whether to fill data only (or also styles and spans) |
Type | Condition |
---|---|
ArgumentOutOfRangeException | Specified row index is not valid; must be between -1 and the total number of rows |
ArgumentOutOfRangeException | Specified column index is not valid; must be between -1 and the total number of columns |
ArgumentOutOfRangeException | Specified row count is not valid; must be -1 or between 0 and the total number of rows minus the current row index |
ArgumentOutOfRangeException | Specified column count is not valid; must be -1 or between 0 and the total number of columns minus the current column index |
ArgumentOutOfRangeException | Specified number of rows or columns (fill count) is not valid; must be -1 or between 0 and the total number of rows or columns |
InvalidEnumArgumentException | Specified direction of the fill is not valid; must be one of the allowed enumeration settings |
Fills a range of cells on this sheet by copying a specified range in the specified direction.
public void FillRange(int row, int column, int rowCount, int columnCount, int fillCount, FillDirection fillDirection, bool dataOnly, bool valuesOnly)
Public Sub FillRange(row As Integer, column As Integer, rowCount As Integer, columnCount As Integer, fillCount As Integer, fillDirection As FillDirection, dataOnly As Boolean, valuesOnly As Boolean)
Type | Name | Description |
---|---|---|
int | row | Row index of the starting cell in the range to copy |
int | column | Column index of the starting cell in the range to copy |
int | rowCount | Number of rows in the range to copy |
int | columnCount | Number of columns in the range to copy |
int | fillCount | Number of rows or columns into which to copy the specified range |
FillDirection | fillDirection | Direction of fill (to copy the specified range) |
bool | dataOnly | Whether to fill data only (or also styles and spans) |
bool | valuesOnly | Whether to fill in values only (or also formulas, notes, and tags) |
Type | Condition |
---|---|
ArgumentOutOfRangeException | Specified row index is not valid; must be between -1 and the total number of rows |
ArgumentOutOfRangeException | Specified column index is not valid; must be between -1 and the total number of columns |
ArgumentOutOfRangeException | Specified row count is not valid; must be -1 or between 0 and the total number of rows minus the current row index |
ArgumentOutOfRangeException | Specified column count is not valid; must be -1 or between 0 and the total number of columns minus the current column index |
ArgumentOutOfRangeException | Specified number of rows or columns (fill count) is not valid; must be -1 or between 0 and the total number of rows or columns |
InvalidEnumArgumentException | Specified direction of the fill is not valid; must be one of the allowed enumeration settings |
InvalidOperationException | Specified target range contains one or more cell spans so the operation cannot be completed. |
Fills a range of cells on this sheet by copying a specified range in the specified direction.
public void FillRange(int row, int column, int rowCount, int columnCount, int fillCount, FillDirection fillDirection, bool dataOnly, bool valuesOnly, bool isFillBySeries, CustomFillSeriesList dataIncrementCustomList)
Public Sub FillRange(row As Integer, column As Integer, rowCount As Integer, columnCount As Integer, fillCount As Integer, fillDirection As FillDirection, dataOnly As Boolean, valuesOnly As Boolean, isFillBySeries As Boolean, dataIncrementCustomList As CustomFillSeriesList)
Type | Name | Description |
---|---|---|
int | row | Row index of the starting cell in the range to copy |
int | column | Column index of the starting cell in the range to copy |
int | rowCount | Number of rows in the range to copy |
int | columnCount | Number of columns in the range to copy |
int | fillCount | Number of rows or columns into which to copy the specified range |
FillDirection | fillDirection | Direction of fill (to copy the specified range) |
bool | dataOnly | Whether to fill data only (or also styles and spans) |
bool | valuesOnly | Whether to fill in values only (or also formulas, notes, and tags) |
bool | isFillBySeries | |
CustomFillSeriesList | dataIncrementCustomList |
Type | Condition |
---|---|
ArgumentOutOfRangeException | Specified row index is not valid; must be between -1 and the total number of rows |
ArgumentOutOfRangeException | Specified column index is not valid; must be between -1 and the total number of columns |
ArgumentOutOfRangeException | Specified row count is not valid; must be -1 or between 0 and the total number of rows minus the current row index |
ArgumentOutOfRangeException | Specified column count is not valid; must be -1 or between 0 and the total number of columns minus the current column index |
ArgumentOutOfRangeException | Specified number of rows or columns (fill count) is not valid; must be -1 or between 0 and the total number of rows or columns |
InvalidEnumArgumentException | Specified direction of the fill is not valid; must be one of the allowed enumeration settings |
InvalidOperationException | Specified target range contains one or more cell spans so the operation cannot be completed. |