Class XlsPivotTable
- Namespace
- Spire.Xls.Core.Spreadsheet.PivotTables
- Assembly
- Spire.XLS.dll
public class XlsPivotTable : XlsObject, IExcelApplication, IDisposable, IPivotTable
- Inheritance
-
XlsPivotTable
- Implements
- Derived
- Inherited Members
Constructors
XlsPivotTable(object, int, IXLSRange)
public XlsPivotTable(object parent, int cacheIndex, IXLSRange location)
Parameters
Properties
AllSubTotalTop
Indicated whether diplay all subtotal at top of group, Change will cover every field's setting
public bool AllSubTotalTop { get; set; }
Property Value
AutoFormatType
public PivotAutoFomatTypes AutoFormatType { get; set; }
Property Value
BuiltInStyle
public PivotBuiltInStyles? BuiltInStyle { get; set; }
Property Value
Cache
public PivotCache Cache { get; }
Property Value
CacheIndex
public int CacheIndex { get; }
Property Value
CalculatedFields
public IPivotCalculatedFields CalculatedFields { get; }
Property Value
ColumnFields
public IPivotFields ColumnFields { get; }
Property Value
ColumnsPerPage
public int ColumnsPerPage { get; set; }
Property Value
CustomTableStyleName
Represent the custom Style for this PivotTable
public string CustomTableStyleName { get; set; }
Property Value
DataFields
public PivotDataFields DataFields { get; }
Property Value
DisplayErrorString
public bool DisplayErrorString { get; set; }
Property Value
DisplayFieldCaptions
public bool DisplayFieldCaptions { get; set; }
Property Value
DisplayNullString
public bool DisplayNullString { get; set; }
Property Value
EnableDrilldown
public bool EnableDrilldown { get; set; }
Property Value
EnableFieldDialog
public bool EnableFieldDialog { get; set; }
Property Value
EnableWizard
public bool EnableWizard { get; set; }
Property Value
ErrorString
public string ErrorString { get; set; }
Property Value
FirstDataCol
Specifies the first column of the PivotTable data, relative to the top left cell in the ref value
public int FirstDataCol { get; set; }
Property Value
FirstDataRow
Specifies the first column of the PivotTable data, relative to the top left cell in the ref value
public int FirstDataRow { get; set; }
Property Value
FirstHeaderRow
Specifies the first row of the PivotTable header, relative to the top left cell in the ref value.
public int FirstHeaderRow { get; set; }
Property Value
IsColumnGrand
public bool IsColumnGrand { get; set; }
Property Value
IsCompatibleWithExcel2003
public bool IsCompatibleWithExcel2003 { get; set; }
Property Value
IsRowGrand
public bool IsRowGrand { get; set; }
Property Value
Location
public CellRange Location { get; set; }
Property Value
ManualUpdate
public bool ManualUpdate { get; set; }
Property Value
MergeLabels
public bool MergeLabels { get; set; }
Property Value
Name
public string Name { get; set; }
Property Value
NullString
public string NullString { get; set; }
Property Value
Options
public IPivotTableOptions Options { get; }
Property Value
PageFieldOrder
public PagesOrderType PageFieldOrder { get; set; }
Property Value
PageFieldStyle
public string PageFieldStyle { get; set; }
Property Value
PageFieldWrapCount
public int PageFieldWrapCount { get; set; }
Property Value
PageFields
public IPivotFields PageFields { get; }
Property Value
Parent
public XlsPivotTablesCollection Parent { get; }
Property Value
PivotConditionalFormats
public PivotConditionalFormatCollection PivotConditionalFormats { get; }
Property Value
PivotFields
public PivotTableFields PivotFields { get; }
Property Value
RepeatItemsOnEachPrintedPage
public bool RepeatItemsOnEachPrintedPage { get; set; }
Property Value
ReportFilters
Gets or sets report filter collection
public PivotReportFilters ReportFilters { get; set; }
Property Value
RowFields
public IPivotFields RowFields { get; }
Property Value
RowsPerPage
public int RowsPerPage { get; set; }
Property Value
ShowColHeaderStyle
Specifies a boolean value that indicates whether to show column headers for the table.
public bool ShowColHeaderStyle { get; set; }
Property Value
ShowColStripes
Specifies a boolean value that indicates whether to show column stripe formatting for the table.
public bool ShowColStripes { get; set; }
Property Value
ShowColumnGrand
public bool ShowColumnGrand { get; set; }
Property Value
ShowDataFieldInRow
Represents the pivot table to add the Calculated Data field in rows
public bool ShowDataFieldInRow { get; set; }
Property Value
ShowDrillIndicators
public bool ShowDrillIndicators { get; set; }
Property Value
ShowLastCol
Specifies a boolean value that indicates whether to show the last column.
public bool ShowLastCol { get; set; }
Property Value
ShowRowGrand
public bool ShowRowGrand { get; set; }
Property Value
ShowRowHeaderStyle
Specifies a boolean value that indicates whether to show row headers for the table.
public bool ShowRowHeaderStyle { get; set; }
Property Value
ShowRowStripes
Specifies a boolean value that indicates whether to show row stripe formatting for the table.
public bool ShowRowStripes { get; set; }
Property Value
ShowSubtotals
public bool ShowSubtotals { get; set; }
Property Value
Workbook
public XlsWorkbook Workbook { get; }
Property Value
Worksheet
public XlsWorksheet Worksheet { get; }
Property Value
Methods
ApplyStyleToRange(IXLSRange, CellStyle)
Apply style to range in pivot table.
public void ApplyStyleToRange(IXLSRange cellRange, CellStyle style)
Parameters
CalculateData()
public void CalculateData()
ChangeDataSource(IXLSRange)
Change the data source of pivotTable.
public void ChangeDataSource(IXLSRange dataSource)
Parameters
dataSource
IXLSRangeNew data source range.
Clear()
public void Clear()
ClearColumnFieldFilter(string)
public void ClearColumnFieldFilter(string fieldName)
Parameters
fieldName
string
ClearFilter(string)
public void ClearFilter(string fieldName)
Parameters
fieldName
string
ClearRowFieldFilter(string)
public void ClearRowFieldFilter(string fieldName)
Parameters
fieldName
string
Clone(object)
public object Clone(object parent)
Parameters
parent
object
Returns
Clone(object, int, Dictionary<string, string>)
public object Clone(object parent, int cacheIndex, Dictionary<string, string> hashWorksheetNames)
Parameters
parent
objectcacheIndex
inthashWorksheetNames
Dictionary<string, string>