[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.Slicers.ISlicerCaches.Add

Add Method

Add(ITable, string, string, bool)

Adds a new ISlicerCache object to the collection.

Declaration
ISlicerCache Add(ITable table, string columnName, string name = null, bool create = true)
Function Add(table As ITable, columnName As String, Optional name As String = Nothing, Optional create As Boolean = True) As ISlicerCache
Parameters
Type Name Description
ITable table

The data source that the new ISlicerCache will be based on.

string columnName

The name of the column in the table to filter by.

string name

The name Spread uses to reference the slicer cache (the value of the Name property). If omitted, Spread will generate a name.

bool create

true to create new ISlicerCache object; otherwise, a corresponding ISlicerCache object is reused if it exists.

Returns
Type Description
ISlicerCache

A ISlicerCache value represents the created slicer cache. null if the slicer cache cannot be created.

Add(ITable, int, string, bool)

Adds a new ISlicerCache object to the collection.

Declaration
ISlicerCache Add(ITable table, int columnIndex, string name = null, bool create = true)
Function Add(table As ITable, columnIndex As Integer, Optional name As String = Nothing, Optional create As Boolean = True) As ISlicerCache
Parameters
Type Name Description
ITable table

The data source that the new ISlicerCache will be based on.

int columnIndex

The relative index of the column in the table to filter by.

string name

The name Spread uses to reference the slicer cache (the value of the Name property). If omitted, Spread will generate a name.

bool create

true to create new ISlicerCache object; otherwise, a corresponding ISlicerCache object is reused if it exists.

Returns
Type Description
ISlicerCache

A ISlicerCache value represents the created slicer cache. null if the slicer cache cannot be created.