Skip to main content
All docs
V26.1
  • CellValue Class

    A cell value in the chart’s underlying spreadsheet.

    Namespace: DevExpress.Docs.Office

    Assembly: DevExpress.Docs.Core.v26.1.dll

    Declaration

    public class CellValue :
        OfficeObject

    The following members return CellValue objects:

    Remarks

    For additional information on how to work with cell values, refer to the following help topic: Specify Series Data by a Cell Reference.

    The following code snippet checks whether a cell value is numeric:

    using DevExpress.Docs.Office;
    using DevExpress.Docs.Presentation;
    
    // Specify data for the chart.
    chart.Data[0, "A1"].NumericValue = 120;
    chart.Data[0, "A2"].NumericValue = 95;
    chart.Data[0, "A3"].NumericValue = 140;
    chart.Data[0, "A4"].NumericValue = 100;
    chart.Data[0, "A5"].NumericValue = 80;
    
    CellValue value = chart.Data[0, "A1"];
    if (value.IsNumeric) {
        // Do something
    }
    

    Implements

    Inheritance

    See Also