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

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

Accepted by parameters

Methods

public static ExcelPivotGrouping Date(String fieldName, GroupByValues groupBy, Nullable<DateTime> startDate = null, Nullable<DateTime> endDate = null, Nullable<Double> interval = null) #
Returns: ExcelPivotGrouping

Creates date grouping metadata for a pivot field.

Parameters

fieldName System.String requiredposition: 0
groupBy DocumentFormat.OpenXml.Spreadsheet.GroupByValues requiredposition: 1
startDate System.Nullable{System.DateTime} = null optionalposition: 2
endDate System.Nullable{System.DateTime} = null optionalposition: 3
interval System.Nullable{System.Double} = null optionalposition: 4
DateHierarchy 2 overloads
public static ExcelPivotGrouping DateHierarchy(String fieldName, params GroupByValues[] 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 DocumentFormat.OpenXml.Spreadsheet.GroupByValues[] requiredposition: 1
public static ExcelPivotGrouping DateHierarchy(String fieldName, IEnumerable<GroupByValues> levels, Nullable<DateTime> startDate = null, Nullable<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{DocumentFormat.OpenXml.Spreadsheet.GroupByValues} requiredposition: 1
startDate System.Nullable{System.DateTime} = null optionalposition: 2
endDate System.Nullable{System.DateTime} = null optionalposition: 3
public static ExcelPivotGrouping Number(String fieldName, Double interval, Nullable<Double> startNumber = null, Nullable<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.Nullable{System.Double} = null optionalposition: 2
endNumber System.Nullable{System.Double} = null optionalposition: 3

Properties

public String FieldName { get; } #

Gets the source field name.

public GroupByValues GroupBy { get; } #

Gets the OpenXML grouping mode.

public Nullable<DateTime> StartDate { get; } #

Gets the optional date grouping start.

public Nullable<DateTime> EndDate { get; } #

Gets the optional date grouping end.

public Nullable<Double> StartNumber { get; } #

Gets the optional numeric grouping start.

public Nullable<Double> EndNumber { get; } #

Gets the optional numeric grouping end.

public Nullable<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<GroupByValues> GeneratedDateLevels { get; } #

Gets generated date hierarchy levels requested for this source field.