java.lang.Object
com.aspose.cells.PivotField
public abstract class PivotField
| Property Getters/Setters Summary | ||
|---|---|---|
abstract int | getAutoShowCount() | |
abstract void | setAutoShowCount(int value) | |
| Represent the number of top or bottom items that are automatically shown in the specified PivotTable field. | ||
abstract int | getAutoShowField() | |
abstract void | setAutoShowField(int value) | |
| Represents auto show field index. -1 means PivotField itself. It should be the index of the data fields. | ||
abstract int | getAutoSortField() | |
abstract void | setAutoSortField(int value) | |
| Represents auto sort field index. -1 means PivotField itself,others means the position of the data fields. | ||
int | getBaseField() | |
void | setBaseField(int value) | |
| Represents the base field for a custom calculation. Please use PivotField.BaseFieldIndex instead | ||
abstract int | getBaseFieldIndex() | |
abstract void | setBaseFieldIndex(int value) | |
| Represents the base field for a custom calculation. | ||
abstract int | getBaseIndex() | |
abstract void | setBaseIndex(int value) | |
| Represents the PivotField index in the base PivotFields. | ||
int | getBaseItem() | |
void | setBaseItem(int value) | |
| Represents the item in the base field for a custom calculation. Valid only for data fields. | ||
abstract int | getBaseItemIndex() | |
abstract void | setBaseItemIndex(int value) | |
| Represents the item in the base field for a custom calculation. Valid only for data fields. | ||
abstract int | getBaseItemPosition() | |
abstract void | setBaseItemPosition(int value) | |
| Represents the item in the base field for a custom calculation. Valid only for data fields. Because PivotItemPosition.Custom is only for read,if you need to set PivotItemPosition.Custom, please set PivotField.BaseItemIndex attribute. The value of the property is PivotItemPosition integer constant. | ||
abstract short | getCurrentPageItem() | |
abstract void | setCurrentPageItem(short value) | |
| Represents the current page item showing for the page field (valid only for page fields). | ||
abstract int | getDataDisplayFormat() | |
abstract void | setDataDisplayFormat(int value) | |
| Represents how to display the values contained in a data field. The value of the property is PivotFieldDataDisplayFormat integer constant. | ||
abstract java.lang.String | getDisplayName() | |
abstract void | setDisplayName(java.lang.String value) | |
| Represents the PivotField display name. | ||
abstract boolean | getDragToColumn() | |
abstract void | setDragToColumn(boolean value) | |
| Indicates whether the specified field can be dragged to the column position. The default value is true. | ||
abstract boolean | getDragToData() | |
abstract void | setDragToData(boolean value) | |
| Indicates whether the specified field can be dragged to the data position. The default value is true. | ||
abstract boolean | getDragToHide() | |
abstract void | setDragToHide(boolean value) | |
| Indicates whether the specified field can be dragged to the hide position. The default value is true. | ||
abstract boolean | getDragToPage() | |
abstract void | setDragToPage(boolean value) | |
| Indicates whether the specified field can be dragged to the page position. The default value is true. | ||
abstract boolean | getDragToRow() | |
abstract void | setDragToRow(boolean value) | |
| Indicates whether the specified field can be dragged to the row position. The default value is true. | ||
abstract int | getFunction() | |
abstract void | setFunction(int value) | |
| Represents the function used to summarize the PivotTable data field. The value of the property is ConsolidationFunction integer constant. | ||
abstract boolean | getInsertBlankRow() | |
abstract void | setInsertBlankRow(boolean value) | |
| Indicates whether inserting blank line after each item. | ||
abstract boolean | isAscendShow() | |
abstract void | setAscendShow(boolean value) | |
| Indicates whether the specified PivotTable field is autoshown ascending. | ||
abstract boolean | isAscendSort() | |
abstract void | setAscendSort(boolean value) | |
| Indicates whether the specified PivotTable field is autosorted ascending. | ||
abstract boolean | isAutoShow() | |
abstract void | setAutoShow(boolean value) | |
| Indicates whether the specified PivotTable field is automatically shown,only valid for excel 2003. | ||
abstract boolean | isAutoSort() | |
abstract void | setAutoSort(boolean value) | |
| Indicates whether the specified PivotTable field is automatically sorted. | ||
abstract boolean | isAutoSubtotals() | |
abstract void | setAutoSubtotals(boolean value) | |
| Indicates whether the specified field shows automatic subtotals. Default is true. | ||
abstract boolean | isCalculatedField() | |
| Indicates whether the specified PivotTable field is calculated field. | ||
abstract boolean | isIncludeNewItemsInFilter() | |
abstract void | setIncludeNewItemsInFilter(boolean value) | |
| indicates whether the field can include new items in manual filter The default value is false. | ||
abstract boolean | isInsertPageBreaksBetweenItems() | |
abstract void | setInsertPageBreaksBetweenItems(boolean value) | |
| indicates whether the field can insert page breaks between items insert page break after each item The default value is false. | ||
abstract boolean | isMultipleItemSelectionAllowed() | |
abstract void | setMultipleItemSelectionAllowed(boolean value) | |
| indicates whether the field can have multiple items selected in the page field The default value is false. | ||
abstract boolean | isRepeatItemLabels() | |
abstract void | setRepeatItemLabels(boolean value) | |
| indicates whether the field can repeat items labels The default value is false. | ||
abstract int | getItemCount() | |
| Gets the base item count of this pivot field. | ||
abstract java.lang.String[] | getItems() | |
| Get all base items; | ||
abstract java.lang.String | getName() | |
| Represents the PivotField name. | ||
abstract int | getNumber() | |
abstract void | setNumber(int value) | |
| Represents the built-in display format of numbers and dates. | ||
abstract java.lang.String | getNumberFormat() | |
abstract void | setNumberFormat(java.lang.String value) | |
| Represents the custom display format of numbers and dates. | ||
abstract java.lang.String[] | getOriginalItems() | |
| Get the original base items; | ||
abstract PivotItemCollection | getPivotItems() | |
| Gets the pivot items of the pivot field | ||
abstract int | getPosition() | |
| Represents the PivotField index in the PivotFields. | ||
abstract SxRng | getRange() | |
| Gets the group range of the pivot field | ||
abstract boolean | getShowAllItems() | |
abstract void | setShowAllItems(boolean value) | |
| Indicates whether all items in the PivotTable report are displayed, even if they don't contain summary data. show items with no data The default value is false. | ||
abstract boolean | getShowCompact() | |
abstract void | setShowCompact(boolean value) | |
| Indicates whether showing in compact mode. | ||
abstract boolean | getShowInOutlineForm() | |
abstract void | setShowInOutlineForm(boolean value) | |
| Indicates whether layout this field in outline form on the Pivot Table view | ||
abstract boolean | getShowSubtotalAtTop() | |
abstract void | setShowSubtotalAtTop(boolean value) | |
| when ShowInOutlineForm is true, then display subtotals at the top of the list of items instead of at the bottom | ||
| Method Summary | ||
|---|---|---|
abstract void | addCalculatedItem(java.lang.String name, java.lang.String formula) | |
| Add a calculated item to the pivot field. | ||
boolean | dragToColumn() | |
| Indicates whether the specified field can be dragged to the column position. The default value is true. | ||
boolean | dragToHide() | |
| Indicates whether the specified field can be dragged to the hide position. The default value is true. | ||
boolean | dragToPage() | |
| Indicates whether the specified field can be dragged to the page position. The default value is true. | ||
boolean | dragToRow() | |
| Indicates whether the specified field can be dragged to the row position. The default value is true. | ||
abstract java.lang.String | getCalculatedFieldFormula() | |
| Get the formula string of the specified calculated field . | ||
abstract PivotFilter | getPivotFilterByType(int type) | |
| Gets the pivot filter of the pivot field by type | ||
abstract java.util.ArrayList | getPivotFilters() | |
| Gets the pivot filters of the pivot field | ||
abstract boolean | getSubtotals(int subtotalType) | |
| Gets whether the specified field shows that subtotals. | ||
abstract void | hideDetail(boolean isHiddenDetail) | |
| Sets whether the PivotItems in a pivot field is hidden detail.That is collapse/expand this field. | ||
abstract void | hideItem(int index, boolean isHidden) | |
| Sets whether the specific PivotItem in a data field is hidden. | ||
abstract void | hideItem(java.lang.String itemValue, boolean isHidden) | |
| Sets whether the specific PivotItem in a data field is hidden. | ||
abstract void | hideItemDetail(int index, boolean isHiddenDetail) | |
| Sets whether the specific PivotItem in a pivot field is hidden detail. | ||
abstract void | initPivotItems() | |
| Init the pivot items of the pivot field | ||
abstract boolean | isHiddenItem(int index) | |
| Indicates whether the specific PivotItem is hidden. | ||
abstract boolean | isHiddenItemDetail(int index) | |
| Indicates whether the specific PivotItem is hidden detail. | ||
abstract void | setSubtotals(int subtotalType, boolean shown) | |
| Sets whether the specified field shows that subtotals. | ||
boolean | showAllItems() | |
| Indicates whether all items in the PivotTable report are displayed, even if they don't contain summary data. show items with no data The default value is false. | ||
| Property Getters/Setters Detail |
|---|
getPivotItems | |
public abstract PivotItemCollection getPivotItems() | |
getRange | |
public abstract SxRng getRange() | |
isCalculatedField | |
public abstract boolean isCalculatedField() | |
getBaseIndex/setBaseIndex | |
public abstract int getBaseIndex() / public abstract void setBaseIndex(int value) | |
getPosition | |
public abstract int getPosition() | |
getName | |
public abstract java.lang.String getName() | |
getDisplayName/setDisplayName | |
public abstract java.lang.String getDisplayName() / public abstract void setDisplayName(java.lang.String value) | |
isAutoSubtotals/setAutoSubtotals | |
public abstract boolean isAutoSubtotals() / public abstract void setAutoSubtotals(boolean value) | |
getDragToColumn/setDragToColumn | |
public abstract boolean getDragToColumn() / public abstract void setDragToColumn(boolean value) | |
getDragToHide/setDragToHide | |
public abstract boolean getDragToHide() / public abstract void setDragToHide(boolean value) | |
getDragToRow/setDragToRow | |
public abstract boolean getDragToRow() / public abstract void setDragToRow(boolean value) | |
getDragToPage/setDragToPage | |
public abstract boolean getDragToPage() / public abstract void setDragToPage(boolean value) | |
getDragToData/setDragToData | |
public abstract boolean getDragToData() / public abstract void setDragToData(boolean value) | |
isMultipleItemSelectionAllowed/setMultipleItemSelectionAllowed | |
public abstract boolean isMultipleItemSelectionAllowed() / public abstract void setMultipleItemSelectionAllowed(boolean value) | |
isRepeatItemLabels/setRepeatItemLabels | |
public abstract boolean isRepeatItemLabels() / public abstract void setRepeatItemLabels(boolean value) | |
isIncludeNewItemsInFilter/setIncludeNewItemsInFilter | |
public abstract boolean isIncludeNewItemsInFilter() / public abstract void setIncludeNewItemsInFilter(boolean value) | |
isInsertPageBreaksBetweenItems/setInsertPageBreaksBetweenItems | |
public abstract boolean isInsertPageBreaksBetweenItems() / public abstract void setInsertPageBreaksBetweenItems(boolean value) | |
getShowAllItems/setShowAllItems | |
public abstract boolean getShowAllItems() / public abstract void setShowAllItems(boolean value) | |
isAutoSort/setAutoSort | |
public abstract boolean isAutoSort() / public abstract void setAutoSort(boolean value) | |
isAscendSort/setAscendSort | |
public abstract boolean isAscendSort() / public abstract void setAscendSort(boolean value) | |
getAutoSortField/setAutoSortField | |
public abstract int getAutoSortField() / public abstract void setAutoSortField(int value) | |
isAutoShow/setAutoShow | |
public abstract boolean isAutoShow() / public abstract void setAutoShow(boolean value) | |
isAscendShow/setAscendShow | |
public abstract boolean isAscendShow() / public abstract void setAscendShow(boolean value) | |
getAutoShowCount/setAutoShowCount | |
public abstract int getAutoShowCount() / public abstract void setAutoShowCount(int value) | |
getAutoShowField/setAutoShowField | |
public abstract int getAutoShowField() / public abstract void setAutoShowField(int value) | |
getFunction/setFunction | |
public abstract int getFunction() / public abstract void setFunction(int value) | |
getDataDisplayFormat/setDataDisplayFormat | |
public abstract int getDataDisplayFormat() / public abstract void setDataDisplayFormat(int value) | |
getBaseField/setBaseField | |
public int getBaseField() / public void setBaseField(int value) | |
getBaseFieldIndex/setBaseFieldIndex | |
public abstract int getBaseFieldIndex() / public abstract void setBaseFieldIndex(int value) | |
getBaseItemPosition/setBaseItemPosition | |
public abstract int getBaseItemPosition() / public abstract void setBaseItemPosition(int value) | |
getBaseItem/setBaseItem | |
public int getBaseItem() / public void setBaseItem(int value) | |
getBaseItemIndex/setBaseItemIndex | |
public abstract int getBaseItemIndex() / public abstract void setBaseItemIndex(int value) | |
getCurrentPageItem/setCurrentPageItem | |
public abstract short getCurrentPageItem() / public abstract void setCurrentPageItem(short value) | |
getNumber/setNumber | |
public abstract int getNumber() / public abstract void setNumber(int value) | |
getInsertBlankRow/setInsertBlankRow | |
public abstract boolean getInsertBlankRow() / public abstract void setInsertBlankRow(boolean value) | |
getShowSubtotalAtTop/setShowSubtotalAtTop | |
public abstract boolean getShowSubtotalAtTop() / public abstract void setShowSubtotalAtTop(boolean value) | |
getShowInOutlineForm/setShowInOutlineForm | |
public abstract boolean getShowInOutlineForm() / public abstract void setShowInOutlineForm(boolean value) | |
getNumberFormat/setNumberFormat | |
public abstract java.lang.String getNumberFormat() / public abstract void setNumberFormat(java.lang.String value) | |
getItems | |
public abstract java.lang.String[] getItems() | |
getOriginalItems | |
public abstract java.lang.String[] getOriginalItems() | |
getItemCount | |
public abstract int getItemCount() | |
getShowCompact/setShowCompact | |
public abstract boolean getShowCompact() / public abstract void setShowCompact(boolean value) | |
| Method Detail |
|---|
getPivotFilterByType | |
public abstract PivotFilter getPivotFilterByType(int type) | |
type - A PivotFilterType value.getPivotFilters | |
public abstract java.util.ArrayList getPivotFilters() | |
initPivotItems | |
public abstract void initPivotItems() | |
getCalculatedFieldFormula | |
public abstract java.lang.String getCalculatedFieldFormula() | |
setSubtotals | |
public abstract void setSubtotals(int subtotalType, boolean shown) | |
subtotalType - A shown - whether the specified field shows that subtotals.getSubtotals | |
public abstract boolean getSubtotals(int subtotalType) | |
subtotalType - A dragToColumn | |
public boolean dragToColumn() | |
dragToHide | |
public boolean dragToHide() | |
dragToRow | |
public boolean dragToRow() | |
dragToPage | |
public boolean dragToPage() | |
showAllItems | |
public boolean showAllItems() | |
isHiddenItem | |
public abstract boolean isHiddenItem(int index) | |
index - the index of the pivotItem in the pivotField.hideItem | |
public abstract void hideItem(int index, boolean isHidden) | |
index - the index of the pivotItem in the pivotField.isHidden - whether the specific PivotItem is hiddenisHiddenItemDetail | |
public abstract boolean isHiddenItemDetail(int index) | |
index - the index of the pivotItem in the pivotField.hideItemDetail | |
public abstract void hideItemDetail(int index, boolean isHiddenDetail) | |
index - the index of the pivotItem in the pivotField.isHiddenDetail - whether the specific PivotItem is hiddenhideDetail | |
public abstract void hideDetail(boolean isHiddenDetail) | |
isHiddenDetail - whether the PivotItems is hiddenhideItem | |
public abstract void hideItem(java.lang.String itemValue, boolean isHidden) | |
itemValue - the value of the pivotItem in the pivotField.isHidden - whether the specific PivotItem is hiddenaddCalculatedItem | |
public abstract void addCalculatedItem(java.lang.String name, java.lang.String formula) | |
name - The item's name.formula - The item's formula