Spread WPF 17
GrapeCity.Windows.SpreadSheet.Data Namespace / Worksheet Class / AddSelection Method / AddSelection(Int32,Int32,Int32,Int32,Boolean) Method
The row index of the first cell to add.
The column index of the first cell to add.
The number of rows to add.
The number of columns to add.
Whether to reset the anchor cell to the top-left corner of the selection area.


In This Topic
    AddSelection(Int32,Int32,Int32,Int32,Boolean) Method
    In This Topic
    Adds a cell or cells to the selection.
    Syntax
    'Declaration
     
    Public Overloads Sub AddSelection( _
       ByVal row As Integer, _
       ByVal column As Integer, _
       ByVal rowCount As Integer, _
       ByVal columnCount As Integer, _
       ByVal moveAnchorCell As Boolean _
    ) 
    'Usage
     
    Dim instance As Worksheet
    Dim row As Integer
    Dim column As Integer
    Dim rowCount As Integer
    Dim columnCount As Integer
    Dim moveAnchorCell As Boolean
     
    instance.AddSelection(row, column, rowCount, columnCount, moveAnchorCell)
    public void AddSelection( 
       int row,
       int column,
       int rowCount,
       int columnCount,
       bool moveAnchorCell
    )

    Parameters

    row
    The row index of the first cell to add.
    column
    The column index of the first cell to add.
    rowCount
    The number of rows to add.
    columnCount
    The number of columns to add.
    moveAnchorCell
    Whether to reset the anchor cell to the top-left corner of the selection area.
    See Also