Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeHiddenDataOptions

OfficeIMO

Namespace
OfficeIMO
Assembly
OfficeIMO.Core
Source revision
0eef6a5756b9 with working tree changes
Modifiers
sealed

Selects which hidden-data categories RemoveHiddenData removes from a document.

Inheritance

  • object
  • OfficeHiddenDataOptions

Constructors

public OfficeHiddenDataOptions() #

Properties

public OfficeHiddenDataKind Kinds { get; set; } #

Categories to remove. Defaults to OfficeHiddenDataKind.Default; tracked changes, hidden content, provenance, attachments and bookmarks are opt-in.

public OfficeTrackedChangesAction TrackedChanges { get; set; } #

Whether tracked changes are kept, accepted or rejected. Defaults to OfficeTrackedChangesAction.Keep.

public string AnonymousAuthor { get; set; } #

Name that replaces authors on retained comments and revisions when OfficeHiddenDataKind.PersonalIdentities is selected. Defaults to Author.

public OfficeProvenanceRemovalOptions Provenance { get; } #

Which provenance carriers OfficeHiddenDataKind.Provenance removes and the limits for reading them, with the same switches as RemoveProvenance: for example keep Content Credentials but drop AI-generated declarations by setting OfficeProvenanceRemovalOptions.RemoveC2paManifests to false. Its OfficeProvenanceRemovalOptions.SignatureMutationPolicy is not used here; the save decides how signatures are handled.