[]
        
(Showing Draft Content)

FarPoint.Win.Spread.SheetView.FillRange

FillRange Method

FillRange(int, int, int, int, int, FillDirection)

Fills a range of cells on this sheet by copying a specified range in the specified direction.

Declaration
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)
Parameters
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)

Exceptions
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

FillRange(int, int, int, int, int, FillDirection, bool)

Fills a range of cells on this sheet by copying a specified range in the specified direction.

Declaration
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)
Parameters
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)

Exceptions
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

FillRange(int, int, int, int, int, FillDirection, bool, bool)

Fills a range of cells on this sheet by copying a specified range in the specified direction.

Declaration
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)
Parameters
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)

Exceptions
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.

FillRange(int, int, int, int, int, FillDirection, bool, bool, bool, CustomFillSeriesList)

Fills a range of cells on this sheet by copying a specified range in the specified direction.

Declaration
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)
Parameters
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
Exceptions
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.