-
com.grapecity.documents.excel
-
- EventHandler
- IAboveAverage
- IAreas
- IAuthor
- IAutoCorrect
- IAutoFilter
- IAutoMergeRangeInfo
- IBarcode
- IBorder
- IBorders
- IBuiltInDocumentPropertyCollection
- ICalcContext
- ICalculatedFields
- ICalculatedItems
- ICascadeSparkLine
- ICellCollection
- ICellColorSortField
- ICellDecoration
- ICellDecorationIcon
- ICellPadding
- ICodabar
- ICode128
- ICode39
- ICode49
- ICode93
- IColorScale
- IColorScaleCriteria
- IColorScaleCriterion
- IColorStop
- IColorStops
- IComment
- IComments
- ICommentsThreaded
- ICommentThreaded
- IConditionValue
- ICornerFold
- ICsvParser
- ICustomDocumentPropertyCollection
- ICustomView
- ICustomViews
- IDataBar
- IDataBarBorder
- IDataMatrix
- IDataOptions
- IDisplayFormat
- IDocumentProperty
- IDocumentPropertyCollection
- IEAN13
- IEAN8
- IExcelOptions
- IFilter
- IFilters
- IFont
- IFontColorSortField
- IFontOption
- IFontProvider
- IFormatColor
- IFormatCondition
- IFormatConditions
- IFormulaOptions
- IFormulaResolver
- IGraphic
- IGraphicsInfo
- IGroupInfo
- IGS1128
- IHeaderFooter
- IHPageBreak
- IHPageBreaks
- IHyperlink
- IHyperlinks
- IIcon
- IIconCriteria
- IIconCriterion
- IIconSet
- IIconSetCondition
- IIconSets
- IIconSortField
- IInterior
- IJsonSerializer
- ILabelOption
- ILabelOptions
- ILinearGradient
- IName
- INames
- INegativeBarFormat
- IOutline
- IOutlineColumn
- IPage
- IPageSetup
- IPane
- IPanes
- IPDF417
- IPDFRenderEngine
- IPivotAxis
- IPivotCache
- IPivotCaches
- IPivotCell
- IPivotField
- IPivotFields
- IPivotFilter
- IPivotFilters
- IPivotFormula
- IPivotFormulas
- IPivotItem
- IPivotItemList
- IPivotItems
- IPivotLine
- IPivotLineCells
- IPivotLines
- IPivotTable
- IPivotTables
- IPivotValueCell
- IProtectionSettings
- IQRCode
- IRange
- IRangeProvider
- IReadOnlySignatureDetails
- IRectangularGradient
- IRichText
- IScenario
- IScenarios
- ISheetTab
- ISheetTabs
- IShrinkToFitSettings
- ISignature
- ISignatureSet
- ISignatureSetup
- ISlicer
- ISlicerCache
- ISlicerCaches
- ISlicerItem
- ISlicerItems
- ISlicerPivotTables
- ISlicers
- ISort
- ISortField
- ISortFields
- ISparkAxes
- ISparkColor
- ISparkHorizontalAxis
- ISparkline
- ISparklineGroup
- ISparklineGroups
- ISparkLineObject
- ISparkPoints
- ISparkVerticalAxis
- IStyle
- IStyleCollection
- ITable
- ITableColumn
- ITableColumns
- ITableDataSource
- ITableRow
- ITableRows
- ITables
- ITableStyle
- ITableStyleCollection
- ITableStyleElement
- ITableStyleElements
- ITableStyleInfo
- ITextRun
- ITheme
- IThemeColor
- IThemeColorScheme
- IThemeFont
- IThemeFonts
- IThemeFontScheme
- ITop10
- IUniqueValues
- IValidation
- IValueSortField
- IVPageBreak
- IVPageBreaks
- IWebRequestHandler
- IWorkbook
- IWorkbookView
- IWorksheet
- IWorksheets
- IWorksheetView
- RangeFindReplace.FindReplaceImpl.FindMatch
- RangePartialClasses.FindReplaceImpl.FindMatch
-
- com.grapecity.documents.excel.drawing
- com.grapecity.documents.excel.expressions
- com.grapecity.documents.excel.forms
- com.grapecity.documents.excel.template
- com.grapecity.documents.excel.template.DataSource
(Showing Draft Content)
IPivotField
Interface IPivotField
public interface IPivotField
Represents a field in a PivotTable report. The PivotField object is a member of the PivotFields collection. The PivotFields collection contains all the fields in a PivotTable report, including hidden fields.
-
Method Summary
Modifier and TypeMethodDescriptionvoidEstablishes automatic field-sorting rules for PivotTable reports.voidEstablishes automatic field-sorting rules for PivotTable reports.voidDeletes all filters currently applied to the PivotField.voidThis method deletes all label filters or all date filters in the PivotFilters collection of the PivotField.voidProvides an easy way to set the Visible property to True for all items of a PivotField in PivotTables, and to empty the HiddenItemsList and VisibleItemsList collections in OLAP PivotTables.voidThis method deletes all value filters in the PivotFilters collection of the PivotField.booleanRetrieves a value that indicates whether any manual filtering is applied to Pivotfield.Returns the name of the data field used to sort the specified PivotTable field automatically.Returns the order used to sort the specified PivotTable field automatically.Gets the base field for a custom calculation.Gets the item in the base field for a custom calculation.Returns aICalculatedItemscollection that represents all the calculated items in the specified PivotTable report.Gets aPivotFieldCalculationvalue that represents the type of calculation performed by the specified field.This property is valid only for data fields.intGets the current page's index showing for the page field (valid only for page fields).booleanGets whether the specified field can be dragged to the column position.booleanGets whether the specified field can be dragged to the data position.booleanGets whether the field can be hidden by being dragged off the PivotTable report.booleanGets whether the field can be dragged to the page position.booleanGets whether the field can be dragged to the row position.booleanGets whether the field can have multiple items selected in the page field.Gets a String value that represents the object's formula in A1-style notation and in the language of the macro.Gets the function used to summarize the PivotTable field (data fields only).booleanGets if a blank row is inserted after the specified row field in a PivotTable report.booleanGets whether or not a PivotField is compacted(items of multiple PivotFields are displayed in a single column) when rows are selected.Returns the way the specified PivotTable items appear — in table format or in outline format.Gets the position of the PivotTable field subtotals in relation to (either above or below) the specified field.getName()Gets the name of the object.Gets the format code for the object.Gets the location of the field in the specified PivotTable report.Get the filter set of the currentIPivotField.Returns a collection of all the visible and hidden items in the specified field.intGets the position of the field (first, second, third, and so on) among all the fields in its orientation (Rows, Columns, Pages, Data).booleanGets whether item labels are repeated in the PivotTable for the specified PivotField.booleanGets if all items in the PivotTable report are displayed, even if they don’t contain summary data.Returns the specified object’s name as it appears in the original source data for the specified PivotTable report.Gets a combination of all the showing subtotal types in the specified PivotField.voidsetBaseField(String value) Sets the base field for a custom calculation.voidsetBaseItem(String value) Sets the item in the base field for a custom calculation.voidsetCalculation(PivotFieldCalculation value) Sets aPivotFieldCalculationvalue that represents the type of calculation performed by the specified field.This property is valid only for data fields.voidsetCurrentPage(int value) Sets the current page's index showing for the page field (valid only for page fields).voidsetDragToColumn(boolean value) Sets whether the specified field can be dragged to the column position.voidsetDragToData(boolean value) Sets whether the specified field can be dragged to the data position.voidsetDragToHide(boolean value) Sets whether the field can be hidden by being dragged off the PivotTable report.voidsetDragToPage(boolean value) Sets whether the field can be dragged to the page position.voidsetDragToRow(boolean value) Sets whether the field can be dragged to the row position.voidsetEnableMultiplePageItems(boolean value) Sets whether the field can have multiple items selected in the page field.voidsetFormula(String value) Sets a String value that represents the object's formula in A1-style notation and in the language of the macro.voidsetFunction(ConsolidationFunction value) Sets the function used to summarize the PivotTable field (data fields only).voidsetLayoutBlankLine(boolean value) Sets if a blank row is inserted after the specified row field in a PivotTable report.voidsetLayoutCompactRow(boolean value) Sets whether or not a PivotField is compacted(items of multiple PivotFields are displayed in a single column) when rows are selected.voidsetLayoutForm(LayoutFormType value) Sets the way the specified PivotTable items appear — in table format or in outline format.voidSets the position of the PivotTable field subtotals in relation to (either above or below) the specified field.voidSets the name of the object.voidsetNumberFormat(String value) Sets the format code for the object.voidsetOrientation(PivotFieldOrientation value) Sets the location of the field in the specified PivotTable report.voidsetPosition(int value) Sets the position of the field (first, second, third, and so on) among all the fields in its orientation (Rows, Columns, Pages, Data).voidsetRepeatLabels(boolean value) Sets whether item labels are repeated in the PivotTable for the specified PivotField.voidsetShowAllItems(boolean value) Sets if all items in the PivotTable report are displayed, even if they don’t contain summary data.voidsetSubtotals(EnumSet<SubtotalType> value) Sets a combination of all the showing subtotal types in the specified PivotField.
-
Method Details
-
getAllItemsVisible
boolean getAllItemsVisible()Retrieves a value that indicates whether any manual filtering is applied to Pivotfield. -
getAutoSortField
String getAutoSortField()Returns the name of the data field used to sort the specified PivotTable field automatically. -
getAutoSortOrder
SortOrder getAutoSortOrder()Returns the order used to sort the specified PivotTable field automatically. -
getBaseField
String getBaseField()Gets the base field for a custom calculation. This property is valid only for data fields. -
setBaseField
Sets the base field for a custom calculation. This property is valid only for data fields. -
getBaseItem
String getBaseItem()Gets the item in the base field for a custom calculation. Valid only for data fields. -
setBaseItem
Sets the item in the base field for a custom calculation. Valid only for data fields. -
getCalculation
PivotFieldCalculation getCalculation()Gets aPivotFieldCalculationvalue that represents the type of calculation performed by the specified field.This property is valid only for data fields. -
setCalculation
Sets aPivotFieldCalculationvalue that represents the type of calculation performed by the specified field.This property is valid only for data fields. -
getCurrentPage
int getCurrentPage()Gets the current page's index showing for the page field (valid only for page fields). The valid value is based on zero. "-1" indicates "All" or "Multiple Items". -
setCurrentPage
void setCurrentPage(int value) Sets the current page's index showing for the page field (valid only for page fields). The valid value is based on zero. "-1" indicates "All" or "Multiple Items". -
getDragToColumn
boolean getDragToColumn()Gets whether the specified field can be dragged to the column position. The default value is True. -
setDragToColumn
void setDragToColumn(boolean value) Sets whether the specified field can be dragged to the column position. The default value is True. -
getDragToData
boolean getDragToData()Gets whether the specified field can be dragged to the data position. The default value is True. -
setDragToData
void setDragToData(boolean value) Sets whether the specified field can be dragged to the data position. The default value is True. -
getDragToHide
boolean getDragToHide()Gets whether the field can be hidden by being dragged off the PivotTable report. The default value is True. -
setDragToHide
void setDragToHide(boolean value) Sets whether the field can be hidden by being dragged off the PivotTable report. The default value is True. -
getDragToPage
boolean getDragToPage()Gets whether the field can be dragged to the page position. The default value is True. -
setDragToPage
void setDragToPage(boolean value) Sets whether the field can be dragged to the page position. The default value is True. -
getDragToRow
boolean getDragToRow()Gets whether the field can be dragged to the row position. The default value is True. -
setDragToRow
void setDragToRow(boolean value) Sets whether the field can be dragged to the row position. The default value is True. -
getEnableMultiplePageItems
boolean getEnableMultiplePageItems()Gets whether the field can have multiple items selected in the page field. The default value is false. -
setEnableMultiplePageItems
void setEnableMultiplePageItems(boolean value) Sets whether the field can have multiple items selected in the page field. The default value is false. -
getFormula
String getFormula()Gets a String value that represents the object's formula in A1-style notation and in the language of the macro. -
setFormula
Sets a String value that represents the object's formula in A1-style notation and in the language of the macro. -
getFunction
ConsolidationFunction getFunction()Gets the function used to summarize the PivotTable field (data fields only). -
setFunction
Sets the function used to summarize the PivotTable field (data fields only). -
getLayoutBlankLine
boolean getLayoutBlankLine()Gets if a blank row is inserted after the specified row field in a PivotTable report. The default value is False. -
setLayoutBlankLine
void setLayoutBlankLine(boolean value) Sets if a blank row is inserted after the specified row field in a PivotTable report. The default value is False. -
getLayoutCompactRow
boolean getLayoutCompactRow()Gets whether or not a PivotField is compacted(items of multiple PivotFields are displayed in a single column) when rows are selected. -
setLayoutCompactRow
void setLayoutCompactRow(boolean value) Sets whether or not a PivotField is compacted(items of multiple PivotFields are displayed in a single column) when rows are selected. -
getLayoutForm
LayoutFormType getLayoutForm()Returns the way the specified PivotTable items appear — in table format or in outline format. -
setLayoutForm
Sets the way the specified PivotTable items appear — in table format or in outline format. -
getLayoutSubtotalLocation
SubtotalLocationType getLayoutSubtotalLocation()Gets the position of the PivotTable field subtotals in relation to (either above or below) the specified field. -
setLayoutSubtotalLocation
Sets the position of the PivotTable field subtotals in relation to (either above or below) the specified field. -
getName
String getName()Gets the name of the object. -
setName
Sets the name of the object. -
getNumberFormat
String getNumberFormat()Gets the format code for the object. -
setNumberFormat
Sets the format code for the object. -
getOrientation
PivotFieldOrientation getOrientation()Gets the location of the field in the specified PivotTable report. -
setOrientation
Sets the location of the field in the specified PivotTable report. -
getPosition
int getPosition()Gets the position of the field (first, second, third, and so on) among all the fields in its orientation (Rows, Columns, Pages, Data). -
setPosition
void setPosition(int value) Sets the position of the field (first, second, third, and so on) among all the fields in its orientation (Rows, Columns, Pages, Data). -
getRepeatLabels
boolean getRepeatLabels()Gets whether item labels are repeated in the PivotTable for the specified PivotField.- Returns:
- True if labels are repeated, false otherwise.
-
setRepeatLabels
void setRepeatLabels(boolean value) Sets whether item labels are repeated in the PivotTable for the specified PivotField. -
getShowAllItems
boolean getShowAllItems()Gets if all items in the PivotTable report are displayed, even if they don’t contain summary data. The default value is False. -
setShowAllItems
void setShowAllItems(boolean value) Sets if all items in the PivotTable report are displayed, even if they don’t contain summary data. The default value is False. -
getSourceName
String getSourceName()Returns the specified object’s name as it appears in the original source data for the specified PivotTable report. This might be different from the current item name if the user renamed the item after creating the PivotTable report. -
getSubtotals
EnumSet<SubtotalType> getSubtotals()Gets a combination of all the showing subtotal types in the specified PivotField. Valid only for nondata fields. -
setSubtotals
Sets a combination of all the showing subtotal types in the specified PivotField. Valid only for nondata fields. -
autoSort
Establishes automatic field-sorting rules for PivotTable reports.- Parameters:
Order- Required SortOrder. The sort order.Field- The name of the sort key field. You must specify the unique name (as returned from the IPivotField.getSourceName()) and not the displayed name.
-
autoSort
Establishes automatic field-sorting rules for PivotTable reports.- Parameters:
Order- Required SortOrder. The sort order.
-
clearAllFilters
void clearAllFilters()Deletes all filters currently applied to the PivotField. This includes deleting all filters from the PivotFilters collection of the PivotField and removing any manual filtering applied to the PivotField as well. If the PivotField is in the Report Filter area, the item selected will be set to the default item. -
clearManualFilter
void clearManualFilter()Provides an easy way to set the Visible property to True for all items of a PivotField in PivotTables, and to empty the HiddenItemsList and VisibleItemsList collections in OLAP PivotTables. -
getPivotItems
IPivotItems getPivotItems()Returns a collection of all the visible and hidden items in the specified field. -
getCalculatedItems
ICalculatedItems getCalculatedItems()Returns aICalculatedItemscollection that represents all the calculated items in the specified PivotTable report.- Returns:
- CalculatedItems collection
-
getPivotFilters
IPivotFilters getPivotFilters()Get the filter set of the currentIPivotField. -
clearLabelFilter
void clearLabelFilter()This method deletes all label filters or all date filters in the PivotFilters collection of the PivotField. -
clearValueFilter
void clearValueFilter()This method deletes all value filters in the PivotFilters collection of the PivotField.
-