Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

ExcelPivotFieldInfo

Namespace OfficeIMO.Excel
Assembly OfficeIMO.Excel
Modifiers sealed

Describes a source field in an existing pivot table.

Inheritance

  • Object
  • ExcelPivotFieldInfo

Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Accepted by parameters 1

Constructors

public ExcelPivotFieldInfo(String fieldName, ExcelPivotTableAxis? axis = null, ExcelPivotFieldSort? sortType = null, UInt32? numberFormatId = null, Boolean? showAll = null, Boolean? defaultSubtotal = null, Boolean? subtotalTop = null, Boolean? insertBlankRow = null, Boolean? insertPageBreak = null, Boolean? compact = null, Boolean? outline = null, Boolean? showDropDowns = null, Boolean? multipleItemSelectionAllowed = null, Boolean? includeNewItemsInFilter = null, String? subtotalCaption = null, IReadOnlyList<String>? hiddenItems = null, String? selectedItem = null, IReadOnlyList<String>? visibleItems = null, String? numberFormatCode = null) #

Creates pivot field readback information.

Parameters

fieldName System.String requiredposition: 0
axis OfficeIMO.Excel.ExcelPivotTableAxis? = null optionalposition: 1
sortType OfficeIMO.Excel.ExcelPivotFieldSort? = null optionalposition: 2
numberFormatId System.UInt32? = null optionalposition: 3
showAll System.Boolean? = null optionalposition: 4
defaultSubtotal System.Boolean? = null optionalposition: 5
subtotalTop System.Boolean? = null optionalposition: 6
insertBlankRow System.Boolean? = null optionalposition: 7
insertPageBreak System.Boolean? = null optionalposition: 8
compact System.Boolean? = null optionalposition: 9
outline System.Boolean? = null optionalposition: 10
showDropDowns System.Boolean? = null optionalposition: 11
multipleItemSelectionAllowed System.Boolean? = null optionalposition: 12
includeNewItemsInFilter System.Boolean? = null optionalposition: 13
subtotalCaption System.String? = null optionalposition: 14
hiddenItems System.Collections.Generic.IReadOnlyList<System.String>? = null optionalposition: 15
selectedItem System.String? = null optionalposition: 16
visibleItems System.Collections.Generic.IReadOnlyList<System.String>? = null optionalposition: 17
numberFormatCode System.String? = null optionalposition: 18

Properties

public String FieldName { get; } #

Gets the source field name.

public ExcelPivotTableAxis? Axis { get; } #

Gets the pivot axis this field is assigned to, if any.

public ExcelPivotFieldSort? SortType { get; } #

Gets the sort mode.

public UInt32? NumberFormatId { get; } #

Gets the field number format id.

public String? NumberFormatCode { get; } #

Gets the custom number format code for the field, when it can be resolved from workbook styles.

public Boolean? ShowAll { get; } #

Gets whether all items should be shown.

public Boolean? DefaultSubtotal { get; } #

Gets whether the default subtotal is used.

public Boolean? SubtotalTop { get; } #

Gets whether subtotals are shown at the top.

public Boolean? InsertBlankRow { get; } #

Gets whether a blank row is inserted after each item.

public Boolean? InsertPageBreak { get; } #

Gets whether a page break is inserted after each item.

public Boolean? Compact { get; } #

Gets whether compact field layout is enabled.

public Boolean? Outline { get; } #

Gets whether outline field layout is enabled.

public Boolean? ShowDropDowns { get; } #

Gets whether filter drop-downs are shown for the field.

public Boolean? MultipleItemSelectionAllowed { get; } #

Gets whether multiple item selection is allowed.

public Boolean? IncludeNewItemsInFilter { get; } #

Gets whether new items are included in the filter by default.

public String? SubtotalCaption { get; } #

Gets the custom subtotal caption.

public IReadOnlyList<String> HiddenItems { get; } #

Gets hidden item captions captured from the field item list.

public String? SelectedItem { get; } #

Gets the selected item caption when this field is used as a page/filter field.

public IReadOnlyList<String> VisibleItems { get; } #

Gets visible item captions captured from the field item list.