CompareOptions.IgnoreFormatting

CompareOptions IgnoreFormatting property. True indicates that formatting is ignored.

CompareOptions.IgnoreFormatting property

True indicates that formatting is ignored.

public bool IgnoreFormatting { get; set; }

Remarks

By default document formatting is not ignored.

Examples

Demonstrates how to compare two documents using the Fluent API with customized CompareOptions.

ComparerContext context = new ComparerContext();
context.Author = "Wordize";
context.DateTime = DateTime.Now;
context.CompareOptions.IgnoreFormatting = true;

Comparer.Create(context)
    .From(MyDir + "CompareV1.docx")
    .From(MyDir + "CompareV2.docx")
    .To(ArtifactsDir + "CompareFluentAPI.docx")
    .Execute();

See Also