Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / ISpreadsheet Interface / Move Method
Row index of starting position of range to move
Column index of starting position of range to move
Row index of starting position of destination
Column index of starting position of destination
Number of rows in range
Number of columns in range
The options indicates which data type will be performed.
The target worksheet where data will be moved to. null means the data is moved to the same worksheet.


In This Topic
    Move Method (ISpreadsheet)
    In This Topic
    Moves the data from a range of cells to the specified location.
    Syntax
    'Declaration
     
    
    Function Move( _
       ByVal row As Integer, _
       ByVal column As Integer, _
       ByVal toRow As Integer, _
       ByVal toColumn As Integer, _
       ByVal rowCount As Integer, _
       ByVal columnCount As Integer, _
       ByVal options As ManipulationOptions, _
       Optional ByVal targetWorksheet As IWorksheet _
    ) As ActionResult(Of Object)
    'Usage
     
    
    Dim instance As ISpreadsheet
    Dim row As Integer
    Dim column As Integer
    Dim toRow As Integer
    Dim toColumn As Integer
    Dim rowCount As Integer
    Dim columnCount As Integer
    Dim options As ManipulationOptions
    Dim targetWorksheet As IWorksheet
    Dim value As ActionResult(Of Object)
     
    value = instance.Move(row, column, toRow, toColumn, rowCount, columnCount, options, targetWorksheet)

    Parameters

    row
    Row index of starting position of range to move
    column
    Column index of starting position of range to move
    toRow
    Row index of starting position of destination
    toColumn
    Column index of starting position of destination
    rowCount
    Number of rows in range
    columnCount
    Number of columns in range
    options
    The options indicates which data type will be performed.
    targetWorksheet
    The target worksheet where data will be moved to. null means the data is moved to the same worksheet.

    Return Value

    true if the cell range is moved successful, false otherwise.
    See Also