Spread Windows Forms 12.0 Product Documentation
Get(Int32,Int32) Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > Cells Class > Get Method : Get(Int32,Int32) Method
Row index of cell
Column index of cell
Gets a new Cell object for the specified row and column.
Syntax
'Declaration
 
Public Overloads Function Get( _
   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.Get(row, column)
public Cell Get( 
   int row,
   int column
)

Parameters

row
Row index of cell
column
Column index of cell

Return Value

Cell object for the specified row and column
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 row index is not valid; must be between zero and the total number of column header rows
Specified column index is not valid; must be between zero and the total number of row header columns
Example
private void button1Click(object sender, System.EventArgs e)
{
         FarPoint.Win.Spread.Cell cell;
         cell = fpSpread1.ActiveSheet.Cells.Get(0, 0);
         cell.BackColor = Color.Yellow;
}
Private Sub Button1Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
         Dim cell As FarPoint.Win.Spread.Cell
         cell = fpSpread1.ActiveSheet.Cells.Get(0, 0)
         cell.BackColor = Color.Yellow
End Sub
See Also

Reference

Cells Class
Cells Members
Overload List