Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ExcelPivotGrouping

OfficeIMO.Excel

Namespace
OfficeIMO.Excel
Assembly
OfficeIMO.Excel
Source revision
273d35d5ba8a with working tree changes
Modifiers
sealed

Describes date or numeric grouping metadata for a pivot source field.

Inheritance

  • object
  • ExcelPivotGrouping

Usage

Explore 4 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.

Methods

public static ExcelPivotGrouping Date(string fieldName, ExcelPivotGroupBy groupBy, DateTime? startDate = null, DateTime? endDate = null, double? interval = null) #

Creates date grouping metadata for a pivot field.

Parameters

fieldName string required
groupBy OfficeIMO.Excel.ExcelPivotGroupBy required
startDate System.DateTime? = null optional
endDate System.DateTime? = null optional
interval double? = null optional
DateHierarchy 2 overloads
public static ExcelPivotGrouping DateHierarchy(string fieldName, params ExcelPivotGroupBy[] levels) #

Creates generated date hierarchy fields for a pivot field, such as years, quarters, and months.

Parameters

fieldName string required
levels OfficeIMO.Excel.ExcelPivotGroupBy[] required
public static ExcelPivotGrouping DateHierarchy(string fieldName, IEnumerable<ExcelPivotGroupBy> levels, DateTime? startDate = null, DateTime? endDate = null) #

Creates generated date hierarchy fields for a pivot field, such as years, quarters, and months.

Parameters

fieldName string required
levels System.Collections.Generic.IEnumerable<OfficeIMO.Excel.ExcelPivotGroupBy> required
startDate System.DateTime? = null optional
endDate System.DateTime? = null optional
public static ExcelPivotGrouping Number(string fieldName, double interval, double? startNumber = null, double? endNumber = null) #

Creates numeric range grouping metadata for a pivot field.

Parameters

fieldName string required
interval double required
startNumber double? = null optional
endNumber double? = null optional

Properties

public string FieldName { get; } #

Gets the source field name.

public ExcelPivotGroupBy GroupBy { get; } #

Gets the OpenXML grouping mode.

public DateTime? StartDate { get; } #

Gets the optional date grouping start.

public DateTime? EndDate { get; } #

Gets the optional date grouping end.

public double? StartNumber { get; } #

Gets the optional numeric grouping start.

public double? EndNumber { get; } #

Gets the optional numeric grouping end.

public double? Interval { get; } #

Gets the grouping interval.

public bool AutoStart { get; } #

Gets whether Excel should infer the start of the grouping range.

public bool AutoEnd { get; } #

Gets whether Excel should infer the end of the grouping range.

public IReadOnlyList<ExcelPivotGroupBy> GeneratedDateLevels { get; } #

Gets generated date hierarchy levels requested for this source field.