# OfficeChangeSetOptions

Settings for OfficeChangeSet.FromTextDiff.

Class 

`OfficeIMO.Diff`

**Namespace**

`OfficeIMO.Diff`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

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

**Modifiers**

sealed

Settings for [OfficeChangeSet.FromTextDiff](/api/core/officeimo-diff-officechangeset/).

## Inheritance

- object
- OfficeChangeSetOptions

## Usage

Explore 1 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.

### Accepted by parameters 1

- Method [OfficeChangeSet.FromTextDiff](/api/core/officeimo-diff-officechangeset/#method-fromtextdiff-officeimo-diff-officediffresult-officeimo-diff-officetexttoken-officeimo-diff-officechangesetoptions) parameter `options`

Filter members 

Show inherited

## Constructors

`public OfficeChangeSetOptions()` [#](#constructor-ctor)

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

## 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 bool DetectMoves { get; set; }` [#](#property-detectmoves)

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

Pairs a deletion with an insertion of the same text elsewhere and reports them as one move. The default is true.

`public int MinimumMoveLength { get; set; }` [#](#property-minimummovelength)

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

Shortest text, in characters after collapsing whitespace, that is reported as a move. The default is 12.

`public bool IncludeWhitespaceOnlyChanges { get; set; }` [#](#property-includewhitespaceonlychanges)

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

Keeps changes that only add or remove whitespace. The default is false.

`public string? OldSource { get; set; }` [#](#property-oldsource)

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

Name of the old document, written to reports.

`public string? NewSource { get; set; }` [#](#property-newsource)

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

Name of the new document, written to reports.

`public Func<int, int?>? OldPageNumber { get; set; }` [#](#property-oldpagenumber)

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

Maps an old token index to its page number, when the source is paged.

`public Func<int, int?>? NewPageNumber { get; set; }` [#](#property-newpagenumber)

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

Maps a new token index to its page number, when the source is paged.

<!-- PowerForge markdown artifact sha256:9BD0B726228D3473827C4F7504AC08AB140A1DA7C1AB8C98BCE12850090B08BC -->
