Gets a new cell for the range of cells with the specified rows and columns.
Syntax
'Declaration
Public Overloads ReadOnly Property Item( _
ByVal As System.Integer, _
ByVal column As System.Integer, _
ByVal As System.Integer, _
ByVal column2 As System.Integer _
) As Cell
'Usage
Dim instance As Cells
Dim row As System.Integer
Dim column As System.Integer
Dim row2 As System.Integer
Dim column2 As System.Integer
Dim value As Cell
value = instance.Item(row, column, row2, column2)
public Cell Item(
System.int ,
System.int column,
System.int ,
System.int column2
) {get;}
Parameters
- row
- The starting row index.
- column
- The starting column index.
- row2
- The ending row index.
- column2
- The ending column index.
Property Value
A
Cell object.
Exceptions
Exception | Description |
System.IndexOutOfRangeException |
Specified starting row index is not valid; must be between zero and the total number of rows.
|
System.IndexOutOfRangeException |
Specified starting column index is not valid; must be between zero and the total number of columns.
|
System.IndexOutOfRangeException |
Specified starting column header row index is not valid; must be between zero and the total number of column header rows.
|
System.IndexOutOfRangeException |
Specified starting row header column index is not valid; must be between zero and the total number of row header columns.
|
System.IndexOutOfRangeException |
Specified starting sheet corner row index is not valid; must be between zero and the total number of sheet corner rows.
|
System.IndexOutOfRangeException |
Specified starting sheet corner column index is not valid; must be between zero and the total number of sheet corner columns.
|
System.IndexOutOfRangeException |
Specified ending row index is not valid; must be between zero and the total number of rows.
|
System.IndexOutOfRangeException |
Specified ending column index is not valid; must be between zero and the total number of columns.
|
System.IndexOutOfRangeException |
Specified ending column header row index is not valid; must be between zero and the total number of column header rows.
|
System.IndexOutOfRangeException |
Specified ending row header column index is not valid; must be between zero and the total number of row header columns.
|
System.IndexOutOfRangeException |
Specified ending sheet corner row index is not valid; must be between zero and the total number of sheet corner rows.
|
System.IndexOutOfRangeException |
Specified ending sheet corner column index is not valid; must be between zero and the total number of sheet corner columns.
|
See Also