Spread WPF Documentation
Item(Int32,Int32) Property
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > Worksheet Class > Item Property : Item(Int32,Int32) Property
The row index.
The column index.
Gets a new cell for the specified row and column.
Syntax
'Declaration
 
Public Overloads ReadOnly Property Item( _
   ByVal row As System.Integer, _
   ByVal column As System.Integer _
) As Cell
'Usage
 
Dim instance As Worksheet
Dim row As System.Integer
Dim column As System.Integer
Dim value As Cell
 
value = instance.Item(row, column)
public Cell Item( 
   System.int row,
   System.int column
) {get;}

Parameters

row
The row index.
column
The column index.

Property Value

A Cell object.
Exceptions
ExceptionDescription
Specified row index is not valid; must be between zero and the total number of rows.
Specified column index is not valid; must be between zero and the total number of columns.
Specified column header row index is not valid; must be between zero and the total number of column header rows.
Specified row header column index is not valid; must be between zero and the total number of row header columns.
Specified sheet corner row index is not valid; must be between zero and the total number of sheet corner rows.
Specified sheet corner column index is not valid; must be between zero and the total number of sheet corner columns.
Example
This example uses the Item property.
gcSpreadSheet1.Sheets[0].Item(1, 1).Tag = "test";
gcSpreadSheet1.Sheets[0].Item("test").Text = "Item Tag";
gcSpreadSheet1.Sheets[0].Item(2, 2, 3, 3).Text = "Block";
GcSpreadSheet1.Sheets(0).Item(1, 1).Tag = "test"
GcSpreadSheet1.Sheets(0).Item("test").Text = "Item Tag"
GcSpreadSheet1.Sheets(0).Item(2, 2, 3, 3).Text = "Block"
See Also

Reference

Worksheet Class
Worksheet Members
Overload List