GrapeCity.Xaml.SpreadSheet.Data
GetValue(Int32,Int32) Method
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > Worksheet Class > GetValue Method : GetValue(Int32,Int32) Method
The row index.
The column index.
Gets unformatted data from the specified cell.
Syntax
'Declaration
 
Public Overloads Function GetValue( _
   ByVal row As Integer, _
   ByVal column As Integer _
) As Object
'Usage
 
Dim instance As Worksheet
Dim row As Integer
Dim column As Integer
Dim value As Object
 
value = instance.GetValue(row, column)
public object GetValue( 
   int row,
   int column
)

Parameters

row
The row index.
column
The column index.

Return Value

Returns the value of the cell.
Example
This example uses the GetValue method.
gcSpreadSheet1.Sheets[0].Cells[0, 0].Text = "Testing";
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetText(0, 0).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetText(0, 0, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells).ToString());
gcSpreadSheet1.Sheets[0].Cells[1, 1].Value = 3;
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetValue(1, 1).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetValue(1, 1, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells).ToString());
GcSpreadSheet1.Sheets(0).Cells(0, 0).Text = "Testing"
ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetText(0, 0).ToString())
ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetText(0, 0, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells).ToString())
GcSpreadSheet1.Sheets(0).Cells(1, 1).Value = 3
ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetValue(1, 1).ToString())
ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetValue(1, 1, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells).ToString())
See Also

Reference

Worksheet Class
Worksheet Members
Overload List