public interface IPivotField
| Modifier and Type | Method and Description |
|---|---|
void |
autoSort(SortOrder Order)
Establishes automatic field-sorting rules for PivotTable reports.
|
void |
autoSort(SortOrder Order,
java.lang.String Field)
Establishes automatic field-sorting rules for PivotTable reports.
|
void |
clearAllFilters()
Deletes all filters currently applied to the PivotField.
|
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.
|
boolean |
getAllItemsVisible()
Retrieves a value that indicates whether any manual filtering is applied to
Pivotfield.
|
java.lang.String |
getAutoSortField()
Returns the name of the data field used to sort the specified PivotTable field automatically.
|
SortOrder |
getAutoSortOrder()
Returns the order used to sort the specified PivotTable field automatically.
|
java.lang.String |
getBaseField()
Gets the base field for a custom calculation.
|
java.lang.String |
getBaseItem()
Gets the item in the base field for a custom calculation.
|
ICalculatedItems |
getCalculatedItems()
Returns a
ICalculatedItems collection that represents all the calculated items in the specified PivotTable report. |
PivotFieldCalculation |
getCalculation()
Gets a
|
int |
getCurrentPage()
Gets the current page's index showing for the page field (valid only for page
fields).
|
boolean |
getDragToColumn()
Gets whether the specified field can be dragged to the column position.
|
boolean |
getDragToData()
Gets whether the specified field can be dragged to the data position.
|
boolean |
getDragToHide()
Gets whether the field can be hidden by being dragged off the PivotTable
report.
|
boolean |
getDragToPage()
Gets whether the field can be dragged to the page position.
|
boolean |
getDragToRow()
Gets whether the field can be dragged to the row position.
|
boolean |
getEnableMultiplePageItems()
Gets whether the field can have multiple items selected in the page field.
|
java.lang.String |
getFormula()
Gets a String value that represents the object's formula in A1-style notation and in the language of the macro.
|
ConsolidationFunction |
getFunction()
Gets the function used to summarize the PivotTable field (data fields only).
|
boolean |
getLayoutBlankLine()
Gets if a blank row is inserted after the specified row field in a PivotTable report.
|
boolean |
getLayoutCompactRow()
Gets whether or not a PivotField is compacted(items of multiple PivotFields are displayed in a single column) when rows are selected.
|
LayoutFormType |
getLayoutForm()
Returns the way the specified PivotTable items appear — in table format or in outline format.
|
SubtotalLocationType |
getLayoutSubtotalLocation()
Gets the position of the PivotTable field subtotals in relation to (either
above or below) the specified field.
|
java.lang.String |
getName()
Gets the name of the object.
|
java.lang.String |
getNumberFormat()
Gets the format code for the object.
|
PivotFieldOrientation |
getOrientation()
Gets the location of the field in the specified PivotTable report.
|
IPivotItems |
getPivotItems()
Returns a collection of all the visible and hidden items in the specified field.
|
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).
|
boolean |
getRepeatLabels()
Gets whether item labels are repeated in the PivotTable for the specified PivotField.
|
boolean |
getShowAllItems()
Gets if all items in the PivotTable report are displayed, even if they don’t contain summary data.
|
java.lang.String |
getSourceName()
Returns the specified object’s name as it appears in the original source data
for the specified PivotTable report.
|
java.util.EnumSet<SubtotalType> |
getSubtotals()
Gets a combination of all the showing subtotal types in the specified
PivotField.
|
void |
setBaseField(java.lang.String value)
Sets the base field for a custom calculation.
|
void |
setBaseItem(java.lang.String value)
Sets the item in the base field for a custom calculation.
|
void |
setCalculation(PivotFieldCalculation value)
Sets a
|
void |
setCurrentPage(int value)
Sets the current page's index showing for the page field (valid only for page
fields).
|
void |
setDragToColumn(boolean value)
Sets whether the specified field can be dragged to the column position.
|
void |
setDragToData(boolean value)
Sets whether the specified field can be dragged to the data position.
|
void |
setDragToHide(boolean value)
Sets whether the field can be hidden by being dragged off the PivotTable
report.
|
void |
setDragToPage(boolean value)
Sets whether the field can be dragged to the page position.
|
void |
setDragToRow(boolean value)
Sets whether the field can be dragged to the row position.
|
void |
setEnableMultiplePageItems(boolean value)
Sets whether the field can have multiple items selected in the page field.
|
void |
setFormula(java.lang.String value)
Sets a String value that represents the object's formula in A1-style notation and in the language of the macro.
|
void |
setFunction(ConsolidationFunction value)
Sets the function used to summarize the PivotTable field (data fields only).
|
void |
setLayoutBlankLine(boolean value)
Sets if a blank row is inserted after the specified row field in a PivotTable report.
|
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.
|
void |
setLayoutForm(LayoutFormType value)
Sets the way the specified PivotTable items appear — in table format or in outline format.
|
void |
setLayoutSubtotalLocation(SubtotalLocationType value)
Sets the position of the PivotTable field subtotals in relation to (either
above or below) the specified field.
|
void |
setName(java.lang.String value)
Sets the name of the object.
|
void |
setNumberFormat(java.lang.String value)
Sets the format code for the object.
|
void |
setOrientation(PivotFieldOrientation value)
Sets the location of the field in the specified PivotTable report.
|
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).
|
void |
setRepeatLabels(boolean value)
Sets whether item labels are repeated in the PivotTable for the specified PivotField.
|
void |
setShowAllItems(boolean value)
Sets if all items in the PivotTable report are displayed, even if they don’t contain summary data.
|
void |
setSubtotals(java.util.EnumSet<SubtotalType> value)
Sets a combination of all the showing subtotal types in the specified
PivotField.
|
boolean getAllItemsVisible()
java.lang.String getAutoSortField()
SortOrder getAutoSortOrder()
java.lang.String getBaseField()
void setBaseField(java.lang.String value)
java.lang.String getBaseItem()
void setBaseItem(java.lang.String value)
PivotFieldCalculation getCalculation()
void setCalculation(PivotFieldCalculation value)
int getCurrentPage()
void setCurrentPage(int value)
boolean getDragToColumn()
void setDragToColumn(boolean value)
boolean getDragToData()
void setDragToData(boolean value)
boolean getDragToHide()
void setDragToHide(boolean value)
boolean getDragToPage()
void setDragToPage(boolean value)
boolean getDragToRow()
void setDragToRow(boolean value)
boolean getEnableMultiplePageItems()
void setEnableMultiplePageItems(boolean value)
java.lang.String getFormula()
void setFormula(java.lang.String value)
ConsolidationFunction getFunction()
void setFunction(ConsolidationFunction value)
boolean getLayoutBlankLine()
void setLayoutBlankLine(boolean value)
boolean getLayoutCompactRow()
void setLayoutCompactRow(boolean value)
LayoutFormType getLayoutForm()
void setLayoutForm(LayoutFormType value)
SubtotalLocationType getLayoutSubtotalLocation()
void setLayoutSubtotalLocation(SubtotalLocationType value)
java.lang.String getName()
void setName(java.lang.String value)
java.lang.String getNumberFormat()
void setNumberFormat(java.lang.String value)
PivotFieldOrientation getOrientation()
void setOrientation(PivotFieldOrientation value)
int getPosition()
void setPosition(int value)
boolean getRepeatLabels()
void setRepeatLabels(boolean value)
boolean getShowAllItems()
void setShowAllItems(boolean value)
java.lang.String getSourceName()
java.util.EnumSet<SubtotalType> getSubtotals()
void setSubtotals(java.util.EnumSet<SubtotalType> value)
void autoSort(SortOrder Order, java.lang.String Field)
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.void autoSort(SortOrder Order)
Order - Required SortOrder. The sort order.void clearAllFilters()
void clearManualFilter()
IPivotItems getPivotItems()
ICalculatedItems getCalculatedItems()
ICalculatedItems collection that represents all the calculated items in the specified PivotTable report.