Spread for ASP.NET 11 Product Documentation
Item(Int32,Int32) Property
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Cells Class > Item Property : Item(Int32,Int32) Property
Row number for the cell
Column number for the cell
Gets (creates and returns) a Cell object for the specified row and column.
Syntax
'Declaration
 
Public Overloads ReadOnly Property Item( _
   ByVal row As Integer, _
   ByVal column As Integer _
) As Cell
'Usage
 
Dim instance As Cells
Dim row As Integer
Dim column As Integer
Dim value As Cell
 
value = instance.Item(row, column)
public Cell Item( 
   int row,
   int column
) {get;}

Parameters

row
Row number for the cell
column
Column number for the cell

Property Value

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 creates a Cell object and uses its formula property to sum the values of two cells.
[ No support for the Item property exists in C#. ] 
Dim acell, mycell, urcell As FarPoint.Web.Spread.Cell
acell = FpSpread1.ActiveSheetView.Cells(0, 0)
mycell = FpSpread1.ActiveSheetView.Cells.Item(2, 2)
urcell = FpSpread1.ActiveSheetView.Cells.Item(2, 3)
FpSpread1.ActiveSheetView.Cells(2, 3).Value = 10
FpSpread1.ActiveSheetView.Cells(2, 2).Value = 10
acell.Formula = "SUM(" + mycell.ToString(FarPoint.Web.Spread.Model.ReferenceStyle.A1) + "," + urcell.ToString(FarPoint.Web.Spread.Model.ReferenceStyle.A1)
+ ")"
See Also

Reference

Cells Class
Cells Members
Overload List