# ExcelRangeDifference

Represents a single cell-level difference between two worksheet ranges.

Class 

`OfficeIMO.Excel`

**Namespace**

`OfficeIMO.Excel`

**Assembly**

`OfficeIMO.Excel`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[ExcelRangeDifference.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRangeDifference.cs#L9)

**Modifiers**

sealed

Represents a single cell-level difference between two worksheet ranges.

## Inheritance

- object
- ExcelRangeDifference

## Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 2

- Method [ExcelDocument.CompareRanges](/api/excel/officeimo-excel-exceldocument/#method-compareranges-officeimo-excel-excelsheet-string-officeimo-excel-excelsheet-string-officeimo-excel-excelrangecompareoptions)
- Method [ExcelDocument.CompareWorksheets](/api/excel/officeimo-excel-exceldocument/#method-compareworksheets-officeimo-excel-excelsheet-officeimo-excel-excelsheet-officeimo-excel-excelrangecompareoptions)

Filter members 

Show inherited

## Constructors

`public ExcelRangeDifference(ExcelRangeDifferenceKind kind, int leftRow, int leftColumn, int rightRow, int rightColumn, string leftCell, string rightCell, object? leftValue, object? rightValue)` [#](#constructor-ctor-officeimo-excel-excelrangedifferencekind-int32-int32-int32-int32-string-string-object-object)

[ExcelRangeDifference.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRangeDifference.cs#L9)

Creates a range difference.

Parameters

**kind OfficeIMO.Excel.ExcelRangeDifferenceKind required**

**leftRow int required**

**leftColumn int required**

**rightRow int required**

**rightColumn int required**

**leftCell string required**

**rightCell string required**

**leftValue object? required**

**rightValue object? required**

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

## Properties

`public ExcelRangeDifferenceKind Kind { get; }` [#](#property-kind)

[ExcelRangeDifference.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRangeDifference.cs#L31)

Difference kind.

`public int LeftRow { get; }` [#](#property-leftrow)

[ExcelRangeDifference.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRangeDifference.cs#L34)

1-based row in the left range.

`public int LeftColumn { get; }` [#](#property-leftcolumn)

[ExcelRangeDifference.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRangeDifference.cs#L37)

1-based column in the left range.

`public int RightRow { get; }` [#](#property-rightrow)

[ExcelRangeDifference.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRangeDifference.cs#L40)

1-based row in the right range.

`public int RightColumn { get; }` [#](#property-rightcolumn)

[ExcelRangeDifference.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRangeDifference.cs#L43)

1-based column in the right range.

`public string LeftCell { get; }` [#](#property-leftcell)

[ExcelRangeDifference.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRangeDifference.cs#L46)

A1 cell reference in the left worksheet.

`public string RightCell { get; }` [#](#property-rightcell)

[ExcelRangeDifference.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRangeDifference.cs#L49)

A1 cell reference in the right worksheet.

`public object? LeftValue { get; }` [#](#property-leftvalue)

[ExcelRangeDifference.cs:52](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRangeDifference.cs#L52)

Value from the left worksheet.

`public object? RightValue { get; }` [#](#property-rightvalue)

[ExcelRangeDifference.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelRangeDifference.cs#L55)

Value from the right worksheet.

<!-- PowerForge markdown artifact sha256:5B93F7E97218BCC0E6FDAA4FDFB526049A932FA3B1139C7EBCA046C23B350B5F -->
