API Reference

Enum

WordDocumentCleanupOptions

Namespace OfficeIMO.Word
Assembly OfficeIMO.Word
Base Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers sealed
Attributes
Flags

Specifies document cleanup operations.

Inheritance

  • Enum
  • WordDocumentCleanupOptions

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Values

public const WordDocumentCleanupOptions None #

No cleanup.

Value: 0
public const WordDocumentCleanupOptions MergeIdenticalRuns #

Merge consecutive runs that share identical formatting.

Value: 1
public const WordDocumentCleanupOptions RemoveEmptyRuns #

Remove runs with no text content.

Value: 2
public const WordDocumentCleanupOptions RemoveRedundantRunProperties #

Remove run properties that have no children.

Value: 4
public const WordDocumentCleanupOptions RemoveEmptyParagraphs #

Delete paragraphs that end up with no runs.

Value: 8
public const WordDocumentCleanupOptions All #

Perform all cleanup operations.

Value: 15