[]
Returns the ISparklineGroup object from a collection.
Use this indexer to retrieve an existing sparkline group by its position in the
current ISparklineGroups collection.
ISparklineGroup this[int index] { get; }
ReadOnly Default Property Item(index As Integer) As ISparklineGroup
| Type | Name | Description |
|---|---|---|
| int | index | Specifies the position of an element in the collection. |
worksheet.Range["A1:C4"].Value = new object[,] {
{1, 2, 3},
{4, 5, 6},
{7, 8, 9},
{10, 11, 12}
};
worksheet.Range["D1:D4"].SparklineGroups.Add(SparkType.Line, "A1:C4");
ISparklineGroup sparklineGroup = worksheet.Range["D1:D4"].SparklineGroups[0];