XmlMappedRange.Subtotal Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates subtotals for the XmlMappedRange control.
public object Subtotal (int GroupBy, Microsoft.Office.Interop.Excel.XlConsolidationFunction Function, object TotalList, object Replace, object PageBreaks, Microsoft.Office.Interop.Excel.XlSummaryRow SummaryBelowData = Microsoft.Office.Interop.Excel.XlSummaryRow.xlSummaryBelow);
abstract member Subtotal : int * Microsoft.Office.Interop.Excel.XlConsolidationFunction * obj * obj * obj * Microsoft.Office.Interop.Excel.XlSummaryRow -> obj
Public Function Subtotal (GroupBy As Integer, Function As XlConsolidationFunction, TotalList As Object, Optional Replace As Object, Optional PageBreaks As Object, Optional SummaryBelowData As XlSummaryRow = Microsoft.Office.Interop.Excel.XlSummaryRow.xlSummaryBelow) As Object
Parameters
- GroupBy
- Int32
The field to group by, as a one-based integer offset.
- Function
- XlConsolidationFunction
The subtotal function.Can be one of the following XlConsolidationFunction values: xlAveragexlCountxlCountNumsxlMaxxlMinxlProductxlStDevxlStDevPxlSumxlUnknownxlVarxlVarP
- TotalList
- Object
An array of 1-based field offsets, indicating the fields to which the subtotals are added.
- Replace
- Object
true
to replace existing subtotals. The default value is false
.
- PageBreaks
- Object
true
to add page breaks after each group. The default value is false
.
- SummaryBelowData
- XlSummaryRow
Places the summary data relative to the subtotal.Can be one of the following XlSummaryRow values: xlSummaryAbovexlSummaryBelow (default)
Returns
Remarks
Optional Parameters
For information on optional parameters, see Optional Parameters in Office Solutions.