GrapeCity.Xaml.SpreadSheet.Data
SetValue(Int32,Int32,SheetArea,Object,Boolean) Method
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > Worksheet Class > SetValue Method : SetValue(Int32,Int32,SheetArea,Object,Boolean) Method
The row index.
The column index.
The sheet area.
The value to set for the specified cell.
A CellPropertyChanged event occurs if this value is true.
Sets the value for the specified cell in the specified sheet area.
Syntax
'Declaration
 
Public Overloads Sub SetValue( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal area As SheetArea, _
   ByVal value As Object, _
   ByVal raiseCellPropertyChanged As Boolean _
) 
'Usage
 
Dim instance As Worksheet
Dim row As Integer
Dim column As Integer
Dim area As SheetArea
Dim value As Object
Dim raiseCellPropertyChanged As Boolean
 
instance.SetValue(row, column, area, value, raiseCellPropertyChanged)
public void SetValue( 
   int row,
   int column,
   SheetArea area,
   object value,
   bool raiseCellPropertyChanged
)

Parameters

row
The row index.
column
The column index.
area
The sheet area.
value
The value to set for the specified cell.
raiseCellPropertyChanged
A CellPropertyChanged event occurs if this value is true.
Example
This example uses the SetValue 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