Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordComparisonOptions

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Source revision
e96266e685be with working tree changes
Modifiers
sealed

Controls optional normalization and feature families used by WordDocumentComparer.CompareStructure.

Inheritance

  • object
  • WordComparisonOptions

Usage

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

Constructors

public WordComparisonOptions() #

Properties

public static WordComparisonOptions Default { get; } #

Gets a new options instance with the default comparison behavior.

public bool IgnoreWhitespace { get; set; } #

Ignores differences caused only by whitespace runs in text-bearing comparison scopes.

public bool IgnoreCase { get; set; } #

Ignores character casing in text-bearing comparison scopes.

public bool CompareRunFormatting { get; set; } #

Compares run formatting changes such as bold, italic, fonts, and other run properties.

public bool CompareEffectiveFormatting { get; set; } #

Resolves document defaults, based-on style chains, paragraph styles, character styles, and direct properties before comparing formatting.

public bool CompareParagraphStyleIds { get; set; } #

Compares paragraph style identifiers as paragraph findings.

public bool CompareRunStyleIds { get; set; } #

Includes run style identifiers when comparing run formatting.

public ISet<WordComparisonScope>? IncludedScopes { get; set; } #

Limits output to the specified finding scopes. When null or empty, all enabled scopes are included.

public ISet<WordComparisonScope>? ExcludedScopes { get; set; } #

Removes the specified finding scopes from the output after all enabled analyzers run.

public bool CompareFields { get; set; } #

Compares Word fields as feature-specific findings.

public bool CompareContentControls { get; set; } #

Compares structured document tags/content controls as feature-specific findings.

public bool CompareBookmarks { get; set; } #

Compares bookmark names, range text, and locations as feature-specific findings.

public bool CompareLists { get; set; } #

Compares numbered and bulleted list items as feature-specific findings.

public bool CompareComments { get; set; } #

Compares comments, replies, target text, and resolved metadata as feature-specific findings.

public bool CompareCommentAuthors { get; set; } #

Compares comment author and initials metadata.

public bool CompareCommentText { get; set; } #

Compares comment body text.

public bool CompareCommentResolvedState { get; set; } #

Compares comment resolved/unresolved metadata.

public bool CompareCommentTargets { get; set; } #

Compares comment target text and target container flags.

public bool CompareCommentReplies { get; set; } #

Compares comment replies as separate review findings.

public bool CompareRevisions { get; set; } #

Compares tracked revisions and tracked formatting metadata as feature-specific findings.

public bool CompareRevisionAuthors { get; set; } #

Compares revision author metadata.

public bool CompareRevisionText { get; set; } #

Compares affected and nearby revision text.

public bool CompareRevisionLocations { get; set; } #

Compares revision part and container-location metadata.

public bool CompareImages { get; set; } #

Compares embedded and externally linked images.

public bool CompareShapes { get; set; } #

Compares bounded Wordprocessing DrawingML preset shapes and native shape groups. Charts, SmartArt, pictures, and arbitrary DrawingML extensions remain separate contracts.

public bool CompareBlockOrder { get; set; } #

Compares document block order when the same comparable blocks appear in a different order.

public bool CompareGeneratedIds { get; set; } #

Compares generated identifiers such as bookmark ids, relationship ids, comment paragraph ids, and revision ids.

public bool CompareVolatileMetadata { get; set; } #

Compares volatile metadata such as generated comment and revision timestamps.