Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Enum

OfficeDiffAlgorithm

OfficeIMO.Diff

Namespace
OfficeIMO.Diff
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Base
Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers
sealed

Selects the sequence-alignment strategy used by OfficeDiff.

Inheritance

  • Enum
  • OfficeDiffAlgorithm

Usage

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

Values

public const OfficeDiffAlgorithm Myers #

Myers' O(ND) algorithm with linear-space refinement. Produces a minimal edit script unless a work limit is reached.

Value: 0
public const OfficeDiffAlgorithm Patience #

Patience diff: aligns on items that occur exactly once on both sides, then uses Myers between anchors. Often reads better for moved or repeated blocks; not guaranteed minimal.

Value: 1
public const OfficeDiffAlgorithm Histogram #

Histogram diff: aligns on the rarest common items first, then uses Myers where no rare anchor exists. Not guaranteed minimal.

Value: 2