[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.IRange.Copy

Copy Method

Copy(int, int, ManipulationOptions)

Copies the data from a range of cells to a specified range of cells.

Declaration
bool Copy(int toRow, int toColumn, ManipulationOptions options = ManipulationOptions.All)
Function Copy(toRow As Integer, toColumn As Integer, Optional options As ManipulationOptions = ManipulationOptions.All) As Boolean
Parameters
Type Name Description
int toRow

Row index of start of range to which to copy

int toColumn

Column index of start of range to which to copy

ManipulationOptions options

The options indicates which data type will be performed.

Returns
Type Description
bool

true if the cell range is copied successful, false otherwise.

Copy(IRange, ManipulationOptions)

Copies the data from a range of cells to a specified range of cells.

Declaration
bool Copy(IRange destination, ManipulationOptions options = ManipulationOptions.All)
Function Copy(destination As IRange, Optional options As ManipulationOptions = ManipulationOptions.All) As Boolean
Parameters
Type Name Description
IRange destination

The specified range will be copied.

ManipulationOptions options

The options indicates which data type will be performed.

Returns
Type Description
bool

true if the cell range is copied successful, false otherwise.

Copy(string, ManipulationOptions)

Copies the data from a range of cells to a specified range of cells.

Declaration
bool Copy(string destination, ManipulationOptions options = ManipulationOptions.All)
Function Copy(destination As String, Optional options As ManipulationOptions = ManipulationOptions.All) As Boolean
Parameters
Type Name Description
string destination

The specified range will be copied.

ManipulationOptions options

The options indicates which data type will be performed.

Returns
Type Description
bool

true if the cell range is copied successful, false otherwise.

Copy(bool, bool)

Copies the data from a range of cells to clipboard.

Declaration
bool Copy(bool showUI = false, bool excludeHidden = false)
Function Copy(Optional showUI As Boolean = False, Optional excludeHidden As Boolean = False) As Boolean
Parameters
Type Name Description
bool showUI

true if the UI shows copying range; otherwise, only data is copied to clipboard.

bool excludeHidden

true if copying excludes hidden range(s); false otherwise

Returns
Type Description
bool

true if the cell range is copied successful, false otherwise.