Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Slicers Namespace / ISlicerCaches Interface / Add Method / Add(ITable,String,String,Boolean) Method
The data source that the new ISlicerCache will be based on.
The name 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,String,String,Boolean) Method
    In This Topic
    Adds a new ISlicerCache object to the collection.
    Syntax
    'Declaration
     
    
    Overloads Function Add( _
       ByVal table As ITable, _
       ByVal columnName As String, _
       Optional ByVal name As String, _
       Optional ByVal create As Boolean _
    ) As ISlicerCache
    'Usage
     
    
    Dim instance As ISlicerCaches
    Dim table As ITable
    Dim columnName As String
    Dim name As String
    Dim create As Boolean
    Dim value As ISlicerCache
     
    value = instance.Add(table, columnName, name, create)

    Parameters

    table
    The data source that the new ISlicerCache will be based on.
    columnName
    The name 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