Spread WPF Documentation
GrapeCity.Windows.SpreadSheet.Data Namespace / Cell Class / Value Property

In This Topic
    Value Property (Cell)
    In This Topic
    Gets or sets the value in a cell.
    Public Property Value As Object
    Dim instance As Cell
    Dim value As Object
    instance.Value = value
    value = instance.Value
    public object Value {get; set;}

    Property Value

    The value in the cell. The default value is null.
    This example uses 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