Class ExcelSparklineGroupCollection
A collection of sparkline groups
Inheritance
Object
ExcelSparklineGroupCollection
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: OfficeOpenXml.Sparkline
Assembly: EPPlus.dll
Syntax
public class ExcelSparklineGroupCollection : IEnumerable<ExcelSparklineGroup>, IEnumerable
Properties
Count
Number of items in the collection
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Item[Int32]
Returns the sparklinegroup at the specified position.
Declaration
public ExcelSparklineGroup this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | index | The position of the Sparklinegroup. 0-base |
Property Value
| Type | Description |
|---|---|
| ExcelSparklineGroup |
Methods
Add(eSparklineType, ExcelAddressBase, ExcelAddressBase)
Adds a new sparklinegroup to the collection
Declaration
public ExcelSparklineGroup Add(eSparklineType type, ExcelAddressBase locationRange, ExcelAddressBase dataRange)
Parameters
| Type | Name | Description |
|---|---|---|
| eSparklineType | type | Type of sparkline |
| ExcelAddressBase | locationRange | The location of the sparkline group. The range must have one row or column and must match the number of rows/columns in the datarange |
| ExcelAddressBase | dataRange | The data for the sparkline group |
Returns
| Type | Description |
|---|---|
| ExcelSparklineGroup |
GetEnumerator()
The enumerator for the collection
Declaration
public IEnumerator<ExcelSparklineGroup> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<ExcelSparklineGroup> | The enumerator |
Remove(ExcelSparklineGroup)
Removes the sparkline.
Declaration
public void Remove(ExcelSparklineGroup sparklineGroup)
Parameters
| Type | Name | Description |
|---|---|---|
| ExcelSparklineGroup | sparklineGroup | The sparklinegroup to be removed |
RemoveAt(Int32)
Removes the sparkline.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | index | The index of the item to be removed |
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable