ExcelPivotGrouping
OfficeIMO.Excel
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.
Returned or exposed by 4
- Method ExcelPivotGrouping.Date
- Method ExcelPivotGrouping.DateHierarchy
- Method ExcelPivotGrouping.Number
- Property ExcelPivotTableOptions.Groupings
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
- groupBy OfficeIMO.Excel.ExcelPivotGroupBy
- startDate System.DateTime? = null
- endDate System.DateTime? = null
- interval double? = null
Returns
ExcelPivotGroupingpublic 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
- levels OfficeIMO.Excel.ExcelPivotGroupBy[]
Returns
ExcelPivotGroupingpublic 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
- levels System.Collections.Generic.IEnumerable<OfficeIMO.Excel.ExcelPivotGroupBy>
- startDate System.DateTime? = null
- endDate System.DateTime? = null
Returns
ExcelPivotGroupingpublic 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
- interval double
- startNumber double? = null
- endNumber double? = null
Returns
ExcelPivotGroupingInherited Methods
Properties
public double? StartNumber { get; } #Gets the optional numeric grouping start.
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.