# ExcelWorkbookDiffOptionsFluent

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

Class 

`OfficeIMO.Excel`

**Namespace**

`OfficeIMO.Excel`

**Assembly**

`OfficeIMO.Excel`

**Modifiers**

static

The fluent methods of [ExcelWorkbookDiffOptions](/api/excel/officeimo-excel-excelworkbookdiffoptions/), 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
- ExcelWorkbookDiffOptionsFluent

Filter members 

Show inherited

## Methods

`public static ExcelWorkbookDiffOptions CompareCells(ExcelWorkbookDiffOptions excelWorkbookDiffOptions, bool value = true)` [#](#method-comparecells-officeimo-excel-excelworkbookdiffoptions-boolean)

Sets [ExcelWorkbookDiffOptions.CompareCells](/api/excel/officeimo-excel-excelworkbookdiffoptions/): Compare visible cell values and formulas.

Parameters

**excelWorkbookDiffOptions OfficeIMO.Excel.ExcelWorkbookDiffOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelWorkbookDiffOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Excel.ExcelWorkbookDiffOptions { CompareCells = value };    excelWorkbookDiffOptions.CompareCells(value);
```

`public static ExcelWorkbookDiffOptions CompareCellStyles(ExcelWorkbookDiffOptions excelWorkbookDiffOptions, bool value = true)` [#](#method-comparecellstyles-officeimo-excel-excelworkbookdiffoptions-boolean)

Sets [ExcelWorkbookDiffOptions.CompareCellStyles](/api/excel/officeimo-excel-excelworkbookdiffoptions/): Compare cell style indexes in used cells.

Parameters

**excelWorkbookDiffOptions OfficeIMO.Excel.ExcelWorkbookDiffOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelWorkbookDiffOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                          // C# fluent
new global::OfficeIMO.Excel.ExcelWorkbookDiffOptions { CompareCellStyles = value };    excelWorkbookDiffOptions.CompareCellStyles(value);
```

`public static ExcelWorkbookDiffOptions CompareComments(ExcelWorkbookDiffOptions excelWorkbookDiffOptions, bool value = true)` [#](#method-comparecomments-officeimo-excel-excelworkbookdiffoptions-boolean)

Sets [ExcelWorkbookDiffOptions.CompareComments](/api/excel/officeimo-excel-excelworkbookdiffoptions/): Compare legacy and threaded comments.

Parameters

**excelWorkbookDiffOptions OfficeIMO.Excel.ExcelWorkbookDiffOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelWorkbookDiffOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                        // C# fluent
new global::OfficeIMO.Excel.ExcelWorkbookDiffOptions { CompareComments = value };    excelWorkbookDiffOptions.CompareComments(value);
```

`public static ExcelWorkbookDiffOptions CompareNamedRanges(ExcelWorkbookDiffOptions excelWorkbookDiffOptions, bool value = true)` [#](#method-comparenamedranges-officeimo-excel-excelworkbookdiffoptions-boolean)

Sets [ExcelWorkbookDiffOptions.CompareNamedRanges](/api/excel/officeimo-excel-excelworkbookdiffoptions/): Compare workbook and sheet-scoped defined names.

Parameters

**excelWorkbookDiffOptions OfficeIMO.Excel.ExcelWorkbookDiffOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelWorkbookDiffOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                           // C# fluent
new global::OfficeIMO.Excel.ExcelWorkbookDiffOptions { CompareNamedRanges = value };    excelWorkbookDiffOptions.CompareNamedRanges(value);
```

`public static ExcelWorkbookDiffOptions CompareTables(ExcelWorkbookDiffOptions excelWorkbookDiffOptions, bool value = true)` [#](#method-comparetables-officeimo-excel-excelworkbookdiffoptions-boolean)

Sets [ExcelWorkbookDiffOptions.CompareTables](/api/excel/officeimo-excel-excelworkbookdiffoptions/): Compare table names, ranges, and header-row state.

Parameters

**excelWorkbookDiffOptions OfficeIMO.Excel.ExcelWorkbookDiffOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelWorkbookDiffOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Excel.ExcelWorkbookDiffOptions { CompareTables = value };    excelWorkbookDiffOptions.CompareTables(value);
```

`public static ExcelWorkbookDiffOptions CompareWorksheetMetadata(ExcelWorkbookDiffOptions excelWorkbookDiffOptions, bool value = true)` [#](#method-compareworksheetmetadata-officeimo-excel-excelworkbookdiffoptions-boolean)

Sets [ExcelWorkbookDiffOptions.CompareWorksheetMetadata](/api/excel/officeimo-excel-excelworkbookdiffoptions/): Compare worksheet validations and AutoFilter/view state.

Parameters

**excelWorkbookDiffOptions OfficeIMO.Excel.ExcelWorkbookDiffOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelWorkbookDiffOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                 // C# fluent
new global::OfficeIMO.Excel.ExcelWorkbookDiffOptions { CompareWorksheetMetadata = value };    excelWorkbookDiffOptions.CompareWorksheetMetadata(value);
```

`public static ExcelWorkbookDiffOptions MaxDifferences(ExcelWorkbookDiffOptions excelWorkbookDiffOptions, int value)` [#](#method-maxdifferences-officeimo-excel-excelworkbookdiffoptions-int32)

Sets [ExcelWorkbookDiffOptions.MaxDifferences](/api/excel/officeimo-excel-excelworkbookdiffoptions/): Maximum differences to report.

Parameters

**excelWorkbookDiffOptions OfficeIMO.Excel.ExcelWorkbookDiffOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelWorkbookDiffOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                       // C# fluent
new global::OfficeIMO.Excel.ExcelWorkbookDiffOptions { MaxDifferences = value };    excelWorkbookDiffOptions.MaxDifferences(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:C660BEF0481B998947A45D3CC1609AB6B5A1E7C2DE560BFBF457C76C4A983A97 -->
