Spread Silverlight Documentation
Value Property (Cell)
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > Cell Class : Value Property
Gets or sets the value in a cell.
Syntax
'Declaration
 
<System.ComponentModel.DefaultValueAttribute()>
Public Property Value As System.Object
'Usage
 
Dim instance As Cell
Dim value As System.Object
 
instance.Value = value
 
value = instance.Value
[System.ComponentModel.DefaultValue()]
public System.object Value {get; set;}

Property Value

The value in the cell. The default value is null.
Example
This example sets the Value property.
gcSpreadSheet1.Sheets[0].Cells[1, 1].Value = 123;
gcSpreadSheet1.Sheets[0].Cells[1, 1].Background = new SolidColorBrush(Colors.Gray);
gcSpreadSheet1.Sheets[0].Cells[1, 1].Foreground = new SolidColorBrush(Colors.Red);
gcSpreadSheet1.Sheets[0].Cells[1, 1].Formatter = new GeneralFormatter("0.00");
GcSpreadSheet1.Sheets(0).Cells(1, 1).Value = 123
GcSpreadSheet1.Sheets(0).Cells(1, 1).Background = New SolidColorBrush(Colors.Gray)
GcSpreadSheet1.Sheets(0).Cells(1, 1).Foreground = New SolidColorBrush(Colors.Red)
GcSpreadSheet1.Sheets(0).Cells(1, 1).Formatter = New GeneralFormatter("0.00")
See Also

Reference

Cell Class
Cell Members