# ExcelSubtotalOptionsFluent

The fluent methods of ExcelSubtotalOptions, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Excel.Reports`

**Namespace**

`OfficeIMO.Excel.Reports`

**Assembly**

`OfficeIMO.Excel`

**Modifiers**

static

The fluent methods of [ExcelSubtotalOptions](/api/excel/officeimo-excel-reports-excelsubtotaloptions/), generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

## Inheritance

- object
- ExcelSubtotalOptionsFluent

Filter members 

Show inherited

## Methods

`public static ExcelSubtotalOptions BlankGroupLabel(ExcelSubtotalOptions excelSubtotalOptions, string value)` [#](#method-blankgrouplabel-officeimo-excel-reports-excelsubtotaloptions-string)

Sets [ExcelSubtotalOptions.BlankGroupLabel](/api/excel/officeimo-excel-reports-excelsubtotaloptions/): Label used when the group key cell is blank.

Parameters

**excelSubtotalOptions OfficeIMO.Excel.Reports.ExcelSubtotalOptions required**

The instance.

**value string required**

The value.

Returns

`ExcelSubtotalOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                            // C# fluent
new global::OfficeIMO.Excel.Reports.ExcelSubtotalOptions { BlankGroupLabel = value };    excelSubtotalOptions.BlankGroupLabel(value);
```

`public static ExcelSubtotalOptions DataEndRow(ExcelSubtotalOptions excelSubtotalOptions, int value)` [#](#method-dataendrow-officeimo-excel-reports-excelsubtotaloptions-int32)

Sets [ExcelSubtotalOptions.DataEndRow](/api/excel/officeimo-excel-reports-excelsubtotaloptions/): Last source data row.

Parameters

**excelSubtotalOptions OfficeIMO.Excel.Reports.ExcelSubtotalOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelSubtotalOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                       // C# fluent
new global::OfficeIMO.Excel.Reports.ExcelSubtotalOptions { DataEndRow = value };    excelSubtotalOptions.DataEndRow(value);
```

`public static ExcelSubtotalOptions DataStartRow(ExcelSubtotalOptions excelSubtotalOptions, int value)` [#](#method-datastartrow-officeimo-excel-reports-excelsubtotaloptions-int32)

Sets [ExcelSubtotalOptions.DataStartRow](/api/excel/officeimo-excel-reports-excelsubtotaloptions/): First source data row.

Parameters

**excelSubtotalOptions OfficeIMO.Excel.Reports.ExcelSubtotalOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelSubtotalOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Excel.Reports.ExcelSubtotalOptions { DataStartRow = value };    excelSubtotalOptions.DataStartRow(value);
```

`public static ExcelSubtotalOptions Function(ExcelSubtotalOptions excelSubtotalOptions, ExcelSubtotalFunction value)` [#](#method-function-officeimo-excel-reports-excelsubtotaloptions-officeimo-excel-reports-excelsubtotalfunction)

Sets [ExcelSubtotalOptions.Function](/api/excel/officeimo-excel-reports-excelsubtotaloptions/): Function used by generated SUBTOTAL formulas.

Parameters

**excelSubtotalOptions OfficeIMO.Excel.Reports.ExcelSubtotalOptions required**

The instance.

**value OfficeIMO.Excel.Reports.ExcelSubtotalFunction required**

The value.

Returns

`ExcelSubtotalOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Excel.Reports.ExcelSubtotalOptions { Function = value };    excelSubtotalOptions.Function(value);
```

`public static ExcelSubtotalOptions GrandTotalLabel(ExcelSubtotalOptions excelSubtotalOptions, string value)` [#](#method-grandtotallabel-officeimo-excel-reports-excelsubtotaloptions-string)

Sets [ExcelSubtotalOptions.GrandTotalLabel](/api/excel/officeimo-excel-reports-excelsubtotaloptions/): Label used for the optional grand total row.

Parameters

**excelSubtotalOptions OfficeIMO.Excel.Reports.ExcelSubtotalOptions required**

The instance.

**value string required**

The value.

Returns

`ExcelSubtotalOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                            // C# fluent
new global::OfficeIMO.Excel.Reports.ExcelSubtotalOptions { GrandTotalLabel = value };    excelSubtotalOptions.GrandTotalLabel(value);
```

`public static ExcelSubtotalOptions GroupColumn(ExcelSubtotalOptions excelSubtotalOptions, int value)` [#](#method-groupcolumn-officeimo-excel-reports-excelsubtotaloptions-int32)

Sets [ExcelSubtotalOptions.GroupColumn](/api/excel/officeimo-excel-reports-excelsubtotaloptions/): Column containing group keys.

Parameters

**excelSubtotalOptions OfficeIMO.Excel.Reports.ExcelSubtotalOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelSubtotalOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                        // C# fluent
new global::OfficeIMO.Excel.Reports.ExcelSubtotalOptions { GroupColumn = value };    excelSubtotalOptions.GroupColumn(value);
```

`public static ExcelSubtotalOptions HeaderRow(ExcelSubtotalOptions excelSubtotalOptions, int value)` [#](#method-headerrow-officeimo-excel-reports-excelsubtotaloptions-int32)

Sets [ExcelSubtotalOptions.HeaderRow](/api/excel/officeimo-excel-reports-excelsubtotaloptions/): Header row that contains source labels.

Parameters

**excelSubtotalOptions OfficeIMO.Excel.Reports.ExcelSubtotalOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelSubtotalOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Excel.Reports.ExcelSubtotalOptions { HeaderRow = value };    excelSubtotalOptions.HeaderRow(value);
```

`public static ExcelSubtotalOptions HideDetailRows(ExcelSubtotalOptions excelSubtotalOptions, bool value = true)` [#](#method-hidedetailrows-officeimo-excel-reports-excelsubtotaloptions-boolean)

Sets [ExcelSubtotalOptions.HideDetailRows](/api/excel/officeimo-excel-reports-excelsubtotaloptions/): Hide detail rows when applying outline metadata.

Parameters

**excelSubtotalOptions OfficeIMO.Excel.Reports.ExcelSubtotalOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelSubtotalOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                           // C# fluent
new global::OfficeIMO.Excel.Reports.ExcelSubtotalOptions { HideDetailRows = value };    excelSubtotalOptions.HideDetailRows(value);
```

`public static ExcelSubtotalOptions IncludeGrandTotal(ExcelSubtotalOptions excelSubtotalOptions, bool value = true)` [#](#method-includegrandtotal-officeimo-excel-reports-excelsubtotaloptions-boolean)

Sets [ExcelSubtotalOptions.IncludeGrandTotal](/api/excel/officeimo-excel-reports-excelsubtotaloptions/): Whether to add a grand total row after group subtotal rows.

Parameters

**excelSubtotalOptions OfficeIMO.Excel.Reports.ExcelSubtotalOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelSubtotalOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                              // C# fluent
new global::OfficeIMO.Excel.Reports.ExcelSubtotalOptions { IncludeGrandTotal = value };    excelSubtotalOptions.IncludeGrandTotal(value);
```

`public static ExcelSubtotalOptions IncludeHeader(ExcelSubtotalOptions excelSubtotalOptions, bool value = true)` [#](#method-includeheader-officeimo-excel-reports-excelsubtotaloptions-boolean)

Sets [ExcelSubtotalOptions.IncludeHeader](/api/excel/officeimo-excel-reports-excelsubtotaloptions/): Whether to write a header row for the summary block.

Parameters

**excelSubtotalOptions OfficeIMO.Excel.Reports.ExcelSubtotalOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelSubtotalOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                          // C# fluent
new global::OfficeIMO.Excel.Reports.ExcelSubtotalOptions { IncludeHeader = value };    excelSubtotalOptions.IncludeHeader(value);
```

`public static ExcelSubtotalOptions LabelSuffix(ExcelSubtotalOptions excelSubtotalOptions, string value)` [#](#method-labelsuffix-officeimo-excel-reports-excelsubtotaloptions-string)

Sets [ExcelSubtotalOptions.LabelSuffix](/api/excel/officeimo-excel-reports-excelsubtotaloptions/): Text appended to each group key in the subtotal label cell.

Parameters

**excelSubtotalOptions OfficeIMO.Excel.Reports.ExcelSubtotalOptions required**

The instance.

**value string required**

The value.

Returns

`ExcelSubtotalOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                        // C# fluent
new global::OfficeIMO.Excel.Reports.ExcelSubtotalOptions { LabelSuffix = value };    excelSubtotalOptions.LabelSuffix(value);
```

`public static ExcelSubtotalOptions OutlineDetailRows(ExcelSubtotalOptions excelSubtotalOptions, bool value = true)` [#](#method-outlinedetailrows-officeimo-excel-reports-excelsubtotaloptions-boolean)

Sets [ExcelSubtotalOptions.OutlineDetailRows](/api/excel/officeimo-excel-reports-excelsubtotaloptions/): Whether to apply Excel row outline metadata to detail groups.

Parameters

**excelSubtotalOptions OfficeIMO.Excel.Reports.ExcelSubtotalOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelSubtotalOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                              // C# fluent
new global::OfficeIMO.Excel.Reports.ExcelSubtotalOptions { OutlineDetailRows = value };    excelSubtotalOptions.OutlineDetailRows(value);
```

`public static ExcelSubtotalOptions OutlineLevel(ExcelSubtotalOptions excelSubtotalOptions, byte value)` [#](#method-outlinelevel-officeimo-excel-reports-excelsubtotaloptions-byte)

Sets [ExcelSubtotalOptions.OutlineLevel](/api/excel/officeimo-excel-reports-excelsubtotaloptions/): Outline level used for grouped detail rows.

Parameters

**excelSubtotalOptions OfficeIMO.Excel.Reports.ExcelSubtotalOptions required**

The instance.

**value byte required**

The value.

Returns

`ExcelSubtotalOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Excel.Reports.ExcelSubtotalOptions { OutlineLevel = value };    excelSubtotalOptions.OutlineLevel(value);
```

`public static ExcelSubtotalOptions SummaryStartRow(ExcelSubtotalOptions excelSubtotalOptions, int? value)` [#](#method-summarystartrow-officeimo-excel-reports-excelsubtotaloptions-nullable-system-int32)

Sets [ExcelSubtotalOptions.SummaryStartRow](/api/excel/officeimo-excel-reports-excelsubtotaloptions/): First row for the generated summary block. Defaults to two rows below [ExcelSubtotalOptions.DataEndRow](/api/excel/officeimo-excel-reports-excelsubtotaloptions/).

Parameters

**excelSubtotalOptions OfficeIMO.Excel.Reports.ExcelSubtotalOptions required**

The instance.

**value int? required**

The value.

Returns

`ExcelSubtotalOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                            // C# fluent
new global::OfficeIMO.Excel.Reports.ExcelSubtotalOptions { SummaryStartRow = value };    excelSubtotalOptions.SummaryStartRow(value);
```

`public static ExcelSubtotalOptions ValueColumns(ExcelSubtotalOptions excelSubtotalOptions, IReadOnlyList<int> value)` [#](#method-valuecolumns-officeimo-excel-reports-excelsubtotaloptions-collections-generic-ireadonlylist-system-int32)

Sets [ExcelSubtotalOptions.ValueColumns](/api/excel/officeimo-excel-reports-excelsubtotaloptions/): Columns to aggregate into subtotal formulas.

Parameters

**excelSubtotalOptions OfficeIMO.Excel.Reports.ExcelSubtotalOptions required**

The instance.

**value System.Collections.Generic.IReadOnlyList<int> required**

The value.

Returns

`ExcelSubtotalOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Excel.Reports.ExcelSubtotalOptions { ValueColumns = value };    excelSubtotalOptions.ValueColumns(value);
```

## 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?`

<!-- PowerForge markdown artifact sha256:6F5C9FA17A60A4170F10538AA93A740D8708AFB1BB177D4C5FF104B4B65929A5 -->
