GrapeCity.Xaml.SpreadSheet.Data
SetText(Int32,Int32,String) Method
Example 


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

Parameters

row
The row index.
column
The column index.
value
The text for the specified 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 SetText method.
gcSpreadSheet1.Sheets[0].SetTag(0, 0, "test");
//gcSpreadSheet1.Sheets[0].SetTag(0, 0, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells, "test");
gcSpreadSheet1.Sheets[0].SetText(1, 1, "testing");
//gcSpreadSheet1.Sheets[0].SetText(1, 1, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells, "Testing");
gcSpreadSheet1.Sheets[0].SetValue(2, 2, "ABC");
//gcSpreadSheet1.Sheets[0].SetValue(2, 2, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells, "ABC");
//gcSpreadSheet1.Sheets[0].SetValue(2, 2, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells, "ABC", true);
GcSpreadSheet1.Sheets(0).SetTag(0, 0, "test")
'GcSpreadSheet1.Sheets(0).SetTag(0, 0, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells, "test")
GcSpreadSheet1.Sheets(0).SetText(1, 1, "testing")
'GcSpreadSheet1.Sheets(0).SetText(1, 1, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells, "Testing")
GcSpreadSheet1.Sheets(0).SetValue(2, 2, "ABC")
'GcSpreadSheet1.Sheets(0).SetValue(2, 2, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells, "ABC")
'GcSpreadSheet1.Sheets(0).SetValue(2, 2, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells, "ABC", True)
See Also

Reference

Worksheet Class
Worksheet Members
Overload List