[]
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.
public interface ISparkLineObject
Public Interface ISparkLineObject
worksheet.Range["A1"].Formula = "=LINESPARKLINE({1,2,8,4,5,6},1)";
ISparkLineObject sparkLineObject = (ISparkLineObject)worksheet.Range["A1"].Value;
string json = sparkLineObject.ToJson();
| 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. |