[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ISparkLineObject

ISparkLineObject Interface

Represents a single sparkline object.

This interface provides access to a sparkline value stored in a worksheet cell. Use ToJson() to obtain the JSON representation of the current sparkline.

Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public interface ISparkLineObject
Public Interface ISparkLineObject
Examples
worksheet.Range["A1"].Formula = "=LINESPARKLINE({1,2,8,4,5,6},1)";
ISparkLineObject sparkLineObject = (ISparkLineObject)worksheet.Range["A1"].Value;
string json = sparkLineObject.ToJson();

Methods

Name Description
ToJson()

Obtains the JSON string of the current Sparkline.

If a cell contains a sparkline formula, calling Value returns an ISparkLineObject that can be serialized to JSON by using this method.