XmlMappedRange.Subtotal Method
Creates subtotals for the XmlMappedRange control.
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Syntax
'Declaration
Function Subtotal ( _
GroupBy As Integer, _
Function As XlConsolidationFunction, _
TotalList As Object, _
Replace As Object, _
PageBreaks As Object, _
SummaryBelowData As XlSummaryRow _
) As Object
Object Subtotal(
int GroupBy,
XlConsolidationFunction Function,
Object TotalList,
Object Replace,
Object PageBreaks,
XlSummaryRow SummaryBelowData
)
Parameters
GroupBy
Type: System.Int32The field to group by, as a one-based integer offset.
Function
Type: XlConsolidationFunctionThe subtotal function.
Can be one of the following XlConsolidationFunction values:
TotalList
Type: System.ObjectAn array of 1-based field offsets, indicating the fields to which the subtotals are added.
Replace
Type: System.Objecttrue to replace existing subtotals. The default value is false.
PageBreaks
Type: System.Objecttrue to add page breaks after each group. The default value is false.
SummaryBelowData
Type: XlSummaryRowPlaces the summary data relative to the subtotal.
Can be one of the following XlSummaryRow values:
xlSummaryBelow (default)
Return Value
Type: System.Object
Remarks
Optional Parameters
For information on optional parameters, see Optional Parameters in Office Solutions.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.