GrapeCity.Xaml.SpreadSheet.Data
GetText(Int32,Int32,SheetArea) Method
Example 


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

Parameters

row
The row index.
column
The column index.
sheetArea
The sheet area.

Return Value

Returns the formatted text of the cell.
Exceptions
ExceptionDescription
Specified row index is out of range; must be between 0 and the total number of rows.
Specified column index is out of range; must be between 0 and the total number of columns.
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.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