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


In This Topic
    Value Property (Cell)
    In This Topic
    Gets or sets the value in a cell.
    Syntax
    'Declaration
     
    <DefaultValueAttribute("")>
    Public Property Value As Object
    'Usage
     
    Dim instance As Cell
    Dim value As Object
     
    instance.Value = value
     
    value = instance.Value
    [DefaultValue("")]
    public object Value {get; set;}

    Property Value

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