[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ISlicerCache.SourceName

SourceName Property

SourceName

Gets the name of the source field that the slicer cache is connected to.

This value identifies the field in the underlying table or PivotTable data source that the slicer cache uses for filtering.

Declaration
string SourceName { get; }
ReadOnly Property SourceName As String
Examples
object[,] sourceData = {{"Category"}, {"Fruit"}, {"Vegetables"}};
worksheet.Range["A1:A3"].Value = sourceData;
ITable table = worksheet.Tables.Add(worksheet.Range["A1:A3"], true);
ISlicerCache slicerCache = workbook.SlicerCaches.Add(table, "Category", "categoryCache");
string sourceName = slicerCache.SourceName;