[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ISparklineGroups.Item

this Property

this[int]

Returns the ISparklineGroup object from a collection.

Use this indexer to retrieve an existing sparkline group by its position in the current ISparklineGroups collection.

Declaration
ISparklineGroup this[int index] { get; }
ReadOnly Default Property Item(index As Integer) As ISparklineGroup
Parameters
Type Name Description
int index

Specifies the position of an element in the collection.

Examples
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];