# ExcelPivotGroupingInfo

Describes grouping metadata read from a pivot cache field.

Class 

`OfficeIMO.Excel`

**Namespace**

`OfficeIMO.Excel`

**Assembly**

`OfficeIMO.Excel`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[ExcelPivotGroupingInfo.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelPivotGroupingInfo.cs#L8)

**Modifiers**

sealed

Describes grouping metadata read from a pivot cache field.

## Inheritance

- object
- ExcelPivotGroupingInfo

## Usage

Explore 3 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 2

- Property [ExcelPivotTableInfo.Groupings](/api/excel/officeimo-excel-excelpivottableinfo/#property-groupings)
- Method [ExcelSheet.AddPivotManualGrouping](/api/excel/officeimo-excel-excelsheet/#method-addpivotmanualgrouping-string-string-string-collections-generic-ireadonlydictionary-system-string-system-string-collections-generic-ireadonlycollection-system-string)

### Accepted by parameters 1

- Constructor [ExcelPivotTableInfo.ExcelPivotTableInfo](/api/excel/officeimo-excel-excelpivottableinfo/#constructor-ctor-string-uint32-string-string-string-string-int32-string-officeimo-excel-excelpivotlayout-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-string-string-string-string-string-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-collections-generic-ireadonlylist-system-string-collections-generic-ireadonlylist-system-string-collections-generic-ireadonlylist-system-string-collections-generic-ireadonlylist-officeimo-excel-excelpivotdatafieldinfo-collections-generic-ireadonlylist-officeimo-excel-excelpivotfieldinfo-collections-generic-ireadonlylist-officeimo-excel-excelpivotfilterinfo-collections-generic-ireadonlylist-officeimo-excel-excelpivotcalculatedfieldinfo-collections-generic-ireadonlylist-officeimo-excel-excelpivotgroupinginfo-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean) parameter `groupings`

Filter members 

Show inherited

## Constructors

`public ExcelPivotGroupingInfo(string fieldName, ExcelPivotGroupBy? groupBy, DateTime? startDate, DateTime? endDate, double? startNumber, double? endNumber, double? interval, bool? autoStart, bool? autoEnd, IReadOnlyList<string>? groupItems = null, uint? baseFieldIndex = null, uint? parentFieldIndex = null)` [#](#member-b11ea43eae53c2b3fe08a800)

[ExcelPivotGroupingInfo.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelPivotGroupingInfo.cs#L8)

Creates pivot grouping readback information.

Parameters

**fieldName string required**

**groupBy OfficeIMO.Excel.ExcelPivotGroupBy? required**

**startDate System.DateTime? required**

**endDate System.DateTime? required**

**startNumber double? required**

**endNumber double? required**

**interval double? required**

**autoStart bool? required**

**autoEnd bool? required**

**groupItems System.Collections.Generic.IReadOnlyList<string>? = null optional**

**baseFieldIndex uint? = null optional**

**parentFieldIndex uint? = null optional**

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string FieldName { get; }` [#](#property-fieldname)

[ExcelPivotGroupingInfo.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelPivotGroupingInfo.cs#L36)

Gets the source field name.

`public ExcelPivotGroupBy? GroupBy { get; }` [#](#property-groupby)

[ExcelPivotGroupingInfo.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelPivotGroupingInfo.cs#L39)

Gets the grouping mode.

`public DateTime? StartDate { get; }` [#](#property-startdate)

[ExcelPivotGroupingInfo.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelPivotGroupingInfo.cs#L42)

Gets the date grouping start, if present.

`public DateTime? EndDate { get; }` [#](#property-enddate)

[ExcelPivotGroupingInfo.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelPivotGroupingInfo.cs#L45)

Gets the date grouping end, if present.

`public double? StartNumber { get; }` [#](#property-startnumber)

[ExcelPivotGroupingInfo.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelPivotGroupingInfo.cs#L48)

Gets the numeric grouping start, if present.

`public double? EndNumber { get; }` [#](#property-endnumber)

[ExcelPivotGroupingInfo.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelPivotGroupingInfo.cs#L51)

Gets the numeric grouping end, if present.

`public double? Interval { get; }` [#](#property-interval)

[ExcelPivotGroupingInfo.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelPivotGroupingInfo.cs#L54)

Gets the grouping interval, if present.

`public bool? AutoStart { get; }` [#](#property-autostart)

[ExcelPivotGroupingInfo.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelPivotGroupingInfo.cs#L57)

Gets whether Excel should infer the grouping start.

`public bool? AutoEnd { get; }` [#](#property-autoend)

[ExcelPivotGroupingInfo.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelPivotGroupingInfo.cs#L60)

Gets whether Excel should infer the grouping end.

`public IReadOnlyList<string> GroupItems { get; }` [#](#property-groupitems)

[ExcelPivotGroupingInfo.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelPivotGroupingInfo.cs#L63)

Gets explicit grouping item labels or values, if present.

`public uint? BaseFieldIndex { get; }` [#](#property-basefieldindex)

[ExcelPivotGroupingInfo.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelPivotGroupingInfo.cs#L66)

Gets the source field index used as the base for this grouping, if present.

`public uint? ParentFieldIndex { get; }` [#](#property-parentfieldindex)

[ExcelPivotGroupingInfo.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelPivotGroupingInfo.cs#L69)

Gets the parent grouping field index, if present.

<!-- PowerForge markdown artifact sha256:7999431473C2F117A05397EACB589346E55FD0CC4832C780BFEFBD27CAF68D51 -->
