Spread Silverlight Documentation
Value Property (Cell)
Example 


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")
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

Cell Class
Cell Members

 

 


Copyright © GrapeCity, inc. All rights reserved.