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

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

Returned or exposed by

Accepted by parameters

Constructors

public ExcelPivotFieldInfo(String fieldName, Nullable<PivotTableAxisValues> axis = null, Nullable<FieldSortValues> sortType = null, Nullable<UInt32> numberFormatId = null, Nullable<Boolean> showAll = null, Nullable<Boolean> defaultSubtotal = null, Nullable<Boolean> subtotalTop = null, Nullable<Boolean> insertBlankRow = null, Nullable<Boolean> insertPageBreak = null, Nullable<Boolean> compact = null, Nullable<Boolean> outline = null, Nullable<Boolean> showDropDowns = null, Nullable<Boolean> multipleItemSelectionAllowed = null, Nullable<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 System.Nullable{DocumentFormat.OpenXml.Spreadsheet.PivotTableAxisValues} = null optionalposition: 1
sortType System.Nullable{DocumentFormat.OpenXml.Spreadsheet.FieldSortValues} = null optionalposition: 2
numberFormatId System.Nullable{System.UInt32} = null optionalposition: 3
showAll System.Nullable{System.Boolean} = null optionalposition: 4
defaultSubtotal System.Nullable{System.Boolean} = null optionalposition: 5
subtotalTop System.Nullable{System.Boolean} = null optionalposition: 6
insertBlankRow System.Nullable{System.Boolean} = null optionalposition: 7
insertPageBreak System.Nullable{System.Boolean} = null optionalposition: 8
compact System.Nullable{System.Boolean} = null optionalposition: 9
outline System.Nullable{System.Boolean} = null optionalposition: 10
showDropDowns System.Nullable{System.Boolean} = null optionalposition: 11
multipleItemSelectionAllowed System.Nullable{System.Boolean} = null optionalposition: 12
includeNewItemsInFilter System.Nullable{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 Nullable<PivotTableAxisValues> Axis { get; } #

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

public Nullable<FieldSortValues> SortType { get; } #

Gets the sort mode.

public Nullable<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 Nullable<Boolean> ShowAll { get; } #

Gets whether all items should be shown.

public Nullable<Boolean> DefaultSubtotal { get; } #

Gets whether the default subtotal is used.

public Nullable<Boolean> SubtotalTop { get; } #

Gets whether subtotals are shown at the top.

public Nullable<Boolean> InsertBlankRow { get; } #

Gets whether a blank row is inserted after each item.

public Nullable<Boolean> InsertPageBreak { get; } #

Gets whether a page break is inserted after each item.

public Nullable<Boolean> Compact { get; } #

Gets whether compact field layout is enabled.

public Nullable<Boolean> Outline { get; } #

Gets whether outline field layout is enabled.

public Nullable<Boolean> ShowDropDowns { get; } #

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

public Nullable<Boolean> MultipleItemSelectionAllowed { get; } #

Gets whether multiple item selection is allowed.

public Nullable<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.