[]
Gets the number of records in the PivotTable cache.
This value reflects the number of source records currently stored in the cache.
int RecordCount { get; }
ReadOnly Property RecordCount As Integer
worksheet.Range["A1:B4"].Value = new object[,] {
{"Region", "Sales"},
{"East", 100},
{"West", 200},
{"East", 150}
};
IPivotCache pivotCache = workbook.PivotCaches.Create(worksheet.Range["A1:B4"]);
int recordCount = pivotCache.RecordCount;