Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ExcelPivotFieldInfo

OfficeIMO.Excel

Namespace
OfficeIMO.Excel
Assembly
OfficeIMO.Excel
Source revision
273d35d5ba8a with working tree changes
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, uint? numberFormatId = null, bool? showAll = null, bool? defaultSubtotal = null, bool? subtotalTop = null, bool? insertBlankRow = null, bool? insertPageBreak = null, bool? compact = null, bool? outline = null, bool? showDropDowns = null, bool? multipleItemSelectionAllowed = null, bool? 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 string required
axis OfficeIMO.Excel.ExcelPivotTableAxis? = null optional
sortType OfficeIMO.Excel.ExcelPivotFieldSort? = null optional
numberFormatId uint? = null optional
showAll bool? = null optional
defaultSubtotal bool? = null optional
subtotalTop bool? = null optional
insertBlankRow bool? = null optional
insertPageBreak bool? = null optional
compact bool? = null optional
outline bool? = null optional
showDropDowns bool? = null optional
multipleItemSelectionAllowed bool? = null optional
includeNewItemsInFilter bool? = null optional
subtotalCaption string? = null optional
hiddenItems System.Collections.Generic.IReadOnlyList<string>? = null optional
selectedItem string? = null optional
visibleItems System.Collections.Generic.IReadOnlyList<string>? = null optional
numberFormatCode string? = null optional

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 uint? 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 bool? ShowAll { get; } #

Gets whether all items should be shown.

public bool? DefaultSubtotal { get; } #

Gets whether the default subtotal is used.

public bool? SubtotalTop { get; } #

Gets whether subtotals are shown at the top.

public bool? InsertBlankRow { get; } #

Gets whether a blank row is inserted after each item.

public bool? InsertPageBreak { get; } #

Gets whether a page break is inserted after each item.

public bool? Compact { get; } #

Gets whether compact field layout is enabled.

public bool? Outline { get; } #

Gets whether outline field layout is enabled.

public bool? ShowDropDowns { get; } #

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

public bool? MultipleItemSelectionAllowed { get; } #

Gets whether multiple item selection is allowed.

public bool? 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.