# OfficeChange

One change between two documents. Review signatures, members, parameters, type relationships, and available reference details in OfficeIMO.Core API Reference.

Class 

`OfficeIMO.Diff`

**Namespace**

`OfficeIMO.Diff`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeChangeSet.cs:91](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Diff/OfficeChangeSet.cs#L91)

**Modifiers**

sealed

One change between two documents.

## Inheritance

- object
- OfficeChange

## 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 1

- Property [OfficeChangeSet.Changes](/api/core/officeimo-diff-officechangeset/#property-changes)

### Accepted by parameters 1

- Constructor [OfficeChangeSet.OfficeChangeSet](/api/core/officeimo-diff-officechangeset/#constructor-ctor-collections-generic-ienumerable-officeimo-diff-officechange-string-string-string-boolean) parameter `changes`

Filter members 

Show inherited

## Constructors

`public OfficeChange(int id, OfficeChangeKind kind, string? oldText, string? newText, OfficeChangeAnchor? oldAnchor, OfficeChangeAnchor? newAnchor)` [#](#constructor-ctor-int32-officeimo-diff-officechangekind-string-string-officeimo-diff-officechangeanchor-officeimo-diff-officechangeanchor)

[OfficeChangeSet.cs:91](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Diff/OfficeChangeSet.cs#L91)

Creates a change.

Parameters

**id int required**

One-based identifier, unique within its [OfficeChangeSet](/api/core/officeimo-diff-officechangeset/).

**kind OfficeIMO.Diff.OfficeChangeKind required**

Change kind.

**oldText string? required**

Removed text; empty for an insertion.

**newText string? required**

Added text; empty for a deletion.

**oldAnchor OfficeIMO.Diff.OfficeChangeAnchor? required**

Position in the old document; for an insertion, the insertion point.

**newAnchor OfficeIMO.Diff.OfficeChangeAnchor? required**

Position in the new document; for a deletion, the point where the text used to be.

## 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 int Id { get; }` [#](#property-id)

[OfficeChangeSet.cs:102](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Diff/OfficeChangeSet.cs#L102)

One-based identifier.

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

[OfficeChangeSet.cs:105](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Diff/OfficeChangeSet.cs#L105)

Change kind.

`public string OldText { get; }` [#](#property-oldtext)

[OfficeChangeSet.cs:108](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Diff/OfficeChangeSet.cs#L108)

Removed text; empty for an insertion. For a move, the moved text.

`public string NewText { get; }` [#](#property-newtext)

[OfficeChangeSet.cs:111](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Diff/OfficeChangeSet.cs#L111)

Added text; empty for a deletion. For a move, the moved text.

`public OfficeChangeAnchor? Old { get; }` [#](#property-old)

[OfficeChangeSet.cs:114](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Diff/OfficeChangeSet.cs#L114)

Position in the old document.

`public OfficeChangeAnchor? New { get; }` [#](#property-new)

[OfficeChangeSet.cs:117](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Diff/OfficeChangeSet.cs#L117)

Position in the new document.

<!-- PowerForge markdown artifact sha256:7CBD0BF58DB664E4B95F94A67FFE43E4D0D18FFDD7F15EE8D7B93B7A6C5FDEA3 -->
