Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

ExcelPivotGrouping

Namespace OfficeIMO.Excel
Assembly OfficeIMO.Excel
Modifiers sealed

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

Inheritance

  • Object
  • ExcelPivotGrouping

Usage

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

Accepted by parameters 2

Methods

public static ExcelPivotGrouping Date(String fieldName, ExcelPivotGroupBy groupBy, DateTime? startDate = null, DateTime? endDate = null, Double? interval = null) #
Returns: ExcelPivotGrouping

Creates date grouping metadata for a pivot field.

Parameters

fieldName System.String requiredposition: 0
groupBy OfficeIMO.Excel.ExcelPivotGroupBy requiredposition: 1
startDate System.DateTime? = null optionalposition: 2
endDate System.DateTime? = null optionalposition: 3
interval System.Double? = null optionalposition: 4
DateHierarchy 2 overloads
public static ExcelPivotGrouping DateHierarchy(String fieldName, params ExcelPivotGroupBy[] levels) #
Returns: ExcelPivotGrouping

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

Parameters

fieldName System.String requiredposition: 0
levels OfficeIMO.Excel.ExcelPivotGroupBy[] requiredposition: 1
public static ExcelPivotGrouping DateHierarchy(String fieldName, IEnumerable<ExcelPivotGroupBy> levels, DateTime? startDate = null, DateTime? endDate = null) #
Returns: ExcelPivotGrouping

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

Parameters

fieldName System.String requiredposition: 0
levels System.Collections.Generic.IEnumerable<OfficeIMO.Excel.ExcelPivotGroupBy> requiredposition: 1
startDate System.DateTime? = null optionalposition: 2
endDate System.DateTime? = null optionalposition: 3
public static ExcelPivotGrouping Number(String fieldName, Double interval, Double? startNumber = null, Double? endNumber = null) #
Returns: ExcelPivotGrouping

Creates numeric range grouping metadata for a pivot field.

Parameters

fieldName System.String requiredposition: 0
interval System.Double requiredposition: 1
startNumber System.Double? = null optionalposition: 2
endNumber System.Double? = null optionalposition: 3

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 Boolean AutoStart { get; } #

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

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