Class ExcelSparklineGroupCollection
- Namespace
- OfficeOpenXml.Sparkline
- Assembly
- EPPlus.dll
A collection of sparkline groups
public class ExcelSparklineGroupCollection : IEnumerable<ExcelSparklineGroup>, IEnumerable
- Inheritance
-
ExcelSparklineGroupCollection
- Implements
- Inherited Members
Properties
Count
Number of items in the collection
public int Count { get; }
Property Value
this[int]
Returns the sparklinegroup at the specified position.
public ExcelSparklineGroup this[int index] { get; }
Parameters
index
intThe position of the Sparklinegroup. 0-base
Property Value
Methods
Add(eSparklineType, ExcelAddressBase, ExcelAddressBase)
Adds a new sparklinegroup to the collection
public ExcelSparklineGroup Add(eSparklineType type, ExcelAddressBase locationRange, ExcelAddressBase dataRange)
Parameters
type
eSparklineTypeType of sparkline
locationRange
ExcelAddressBaseThe location of the sparkline group. The range must have one row or column and must match the number of rows/columns in the datarange
dataRange
ExcelAddressBaseThe data for the sparkline group
Returns
GetEnumerator()
The enumerator for the collection
public IEnumerator<ExcelSparklineGroup> GetEnumerator()
Returns
- IEnumerator<ExcelSparklineGroup>
The enumerator
Remove(ExcelSparklineGroup)
Removes the sparkline.
public void Remove(ExcelSparklineGroup sparklineGroup)
Parameters
sparklineGroup
ExcelSparklineGroupThe sparklinegroup to be removed
RemoveAt(int)
Removes the sparkline.
public void RemoveAt(int index)
Parameters
index
intThe index of the item to be removed