# ExcelRangeCompareOptionsFluent

The fluent methods of ExcelRangeCompareOptions, 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 [ExcelRangeCompareOptions](/api/excel/officeimo-excel-excelrangecompareoptions/), 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
- ExcelRangeCompareOptionsFluent

Filter members 

Show inherited

## Methods

`public static ExcelRangeCompareOptions IgnoreCase(ExcelRangeCompareOptions excelRangeCompareOptions, bool value = true)` [#](#method-ignorecase-officeimo-excel-excelrangecompareoptions-boolean)

Sets [ExcelRangeCompareOptions.IgnoreCase](/api/excel/officeimo-excel-excelrangecompareoptions/): Compares string values using ordinal case-insensitive comparison.

Parameters

**excelRangeCompareOptions OfficeIMO.Excel.ExcelRangeCompareOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelRangeCompareOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Excel.ExcelRangeCompareOptions { IgnoreCase = value };    excelRangeCompareOptions.IgnoreCase(value);
```

`public static ExcelRangeCompareOptions TreatNullAndEmptyStringAsEqual(ExcelRangeCompareOptions excelRangeCompareOptions, bool value = true)` [#](#method-treatnullandemptystringasequal-officeimo-excel-excelrangecompareoptions-boolean)

Sets [ExcelRangeCompareOptions.TreatNullAndEmptyStringAsEqual](/api/excel/officeimo-excel-excelrangecompareoptions/): Treats null values and empty strings as equal. Enabled by default to match common reporting expectations.

Parameters

**excelRangeCompareOptions OfficeIMO.Excel.ExcelRangeCompareOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelRangeCompareOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                       // C# fluent
new global::OfficeIMO.Excel.ExcelRangeCompareOptions { TreatNullAndEmptyStringAsEqual = value };    excelRangeCompareOptions.TreatNullAndEmptyStringAsEqual(value);
```

`public static ExcelRangeCompareOptions TrimStrings(ExcelRangeCompareOptions excelRangeCompareOptions, bool value = true)` [#](#method-trimstrings-officeimo-excel-excelrangecompareoptions-boolean)

Sets [ExcelRangeCompareOptions.TrimStrings](/api/excel/officeimo-excel-excelrangecompareoptions/): Trims string values before comparing.

Parameters

**excelRangeCompareOptions OfficeIMO.Excel.ExcelRangeCompareOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelRangeCompareOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                    // C# fluent
new global::OfficeIMO.Excel.ExcelRangeCompareOptions { TrimStrings = value };    excelRangeCompareOptions.TrimStrings(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:438B9E37DA21FC6D6A67C9E03321B76E799DCBAF8B9418DE01C99F9BBC722603 -->
