API Reference
ExcelPivotGrouping
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.
Returned or exposed by 3
- Method ExcelPivotGrouping.Date
- Method ExcelPivotGrouping.DateHierarchy
- Method ExcelPivotGrouping.Number
Accepted by parameters 2
- Method ExcelSheet.AddPivotTable
- Method PivotTableBuilder.Group
Methods
public static ExcelPivotGrouping Date(String fieldName, ExcelPivotGroupBy groupBy, DateTime? startDate = null, DateTime? endDate = null, Double? interval = null) #ExcelPivotGroupingCreates date grouping metadata for a pivot field.
Parameters
- fieldName System.String
- groupBy OfficeIMO.Excel.ExcelPivotGroupBy
- startDate System.DateTime? = null
- endDate System.DateTime? = null
- interval System.Double? = null
public static ExcelPivotGrouping DateHierarchy(String fieldName, params ExcelPivotGroupBy[] levels) #ExcelPivotGroupingCreates generated date hierarchy fields for a pivot field, such as years, quarters, and months.
Parameters
- fieldName System.String
- levels OfficeIMO.Excel.ExcelPivotGroupBy[]
public static ExcelPivotGrouping DateHierarchy(String fieldName, IEnumerable<ExcelPivotGroupBy> levels, DateTime? startDate = null, DateTime? endDate = null) #ExcelPivotGroupingCreates generated date hierarchy fields for a pivot field, such as years, quarters, and months.
Parameters
- fieldName System.String
- levels System.Collections.Generic.IEnumerable<OfficeIMO.Excel.ExcelPivotGroupBy>
- startDate System.DateTime? = null
- endDate System.DateTime? = null
public static ExcelPivotGrouping Number(String fieldName, Double interval, Double? startNumber = null, Double? endNumber = null) #ExcelPivotGroupingCreates numeric range grouping metadata for a pivot field.
Parameters
- fieldName System.String
- interval System.Double
- startNumber System.Double? = null
- endNumber System.Double? = null
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public Double? StartNumber { get; } #Gets the optional numeric grouping start.
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.