Spread WPF Documentation
GetText(Int32,Int32) Method
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > Worksheet Class > GetText Method : GetText(Int32,Int32) Method
The row index.
The column index.
Gets the formatted text in the cell using the IFormatter object for the cell.
Syntax
'Declaration
 
Public Overloads Function GetText( _
   ByVal row As System.Integer, _
   ByVal column As System.Integer _
) As System.String
'Usage
 
Dim instance As Worksheet
Dim row As System.Integer
Dim column As System.Integer
Dim value As System.String
 
value = instance.GetText(row, column)
public System.string GetText( 
   System.int row,
   System.int column
)

Parameters

row
The row index.
column
The column index.

Return Value

Returns the formatted text of the cell.
Example
This example uses the GetText 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.Windows.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.Windows.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.Windows.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.Windows.SpreadSheet.Data.SheetArea.Cells).ToString())
See Also

Reference

Worksheet Class
Worksheet Members
Overload List