Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeDiffOptions

OfficeIMO.Diff

Namespace
OfficeIMO.Diff
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Modifiers
sealed

Settings for OfficeDiff.

Inheritance

  • object
  • OfficeDiffOptions

Usage

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

Accepted by parameters 6

Constructors

public OfficeDiffOptions() #

Properties

public OfficeDiffAlgorithm Algorithm { get; set; } #

Alignment strategy. The default is OfficeDiffAlgorithm.Myers.

public bool SemanticCleanup { get; set; } #

Merges short equal runs that sit between changes into the surrounding change, so that a change reads as one replacement instead of alternating fragments. The weight of a run is its item count, or its character count for text tokens. The default is false.

public long MaxWorkUnits { get; set; } #

Maximum number of comparison steps before the remaining regions are reported as whole deletions and insertions. Zero or less means no limit. The default is 50,000,000.

public TimeSpan? Timeout { get; set; } #

Maximum time spent aligning before the remaining regions are reported as whole deletions and insertions. Null or Timeout.InfiniteTimeSpan means no limit.

public bool IgnoreCase { get; set; } #

Text comparison ignores case when true. Applies to the text helpers only.

public bool IgnoreWhitespace { get; set; } #

Text comparison treats every whitespace token as equal to any other whitespace token when true, so changes in spacing or line breaks between words are not reported. Applies to the word and line helpers only.