[]
Represents the collection of slicer caches associated with the specified workbook.
public interface ISlicerCaches : IEnumerable
Gets the number of objects in the collection.
int Count { get; }
Gets the ISlicerCache with the specified index.
ISlicerCache this[int index] { get; }
index
intthe index.
Gets the ISlicerCache with the specified name.
ISlicerCache this[string name] { get; }
name
stringthe name.
Adds a new ISlicerCache object to the collection.
ISlicerCache Add(object source, string sourceField, string name = null)
source
objectThe data source that the new ISlicerCache will be based on.
sourceField
stringThe name of the field in the data source to filter by.
name
stringThe name uses to reference the slicer cache (the value of the ISlicerCache.Name property).
Returns ISlicerCache.