Spread WinForms 15
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Slicers Namespace / ISlicerCaches Interface / Add Method / Add(ITable,Int32,String,Boolean) Method
The data source that the new ISlicerCache will be based on.
The relative index of the column in the table to filter by.
The name Spread uses to reference the slicer cache (the value of the ISlicerCache.Name property). If omitted, Spread will generate a name.
true to create new ISlicerCache object; otherwise, a corresponding ISlicerCache object is reused if it exists.


In This Topic
Add(ITable,Int32,String,Boolean) Method
In This Topic
Adds a new ISlicerCache object to the collection.
Syntax
'Declaration
 
Overloads Function Add( _
   ByVal table As ITable, _
   ByVal columnIndex As Integer, _
   Optional ByVal name As String, _
   Optional ByVal create As Boolean _
) As ISlicerCache
 
'Usage
 
Dim instance As ISlicerCaches
Dim table As ITable
Dim columnIndex As Integer
Dim name As String
Dim create As Boolean
Dim value As ISlicerCache
 
value = instance.Add(table, columnIndex, name, create)

Parameters

table
The data source that the new ISlicerCache will be based on.
columnIndex
The relative index of the column in the table to filter by.
name
The name Spread uses to reference the slicer cache (the value of the ISlicerCache.Name property). If omitted, Spread will generate a name.
create
true to create new ISlicerCache object; otherwise, a corresponding ISlicerCache object is reused if it exists.

Return Value

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