TX Text Control .NET for WPF

OmittedContent Property

Property|Introduced in 26.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Specifies data to be omitted when the document is saved.

Syntax

public OmittedContent OmittedContent { get; set; }

Members

ValueDescription
NoneNothing is omitted.
CommentsComments are omitted.
EditableRegionsEditable regions are omitted. Only the region markers are omitted, the text and formatting attributes belonging to the editable region are saved.
FootnotesFootnotes are omitted.
SubTextPartsSubtextparts are omitted. Only the subtextpart is omitted, the text and formatting attributes belonging to the subtextpart are saved.
SectionsSection data is omitted.
TablesOfContentsTables of contents are omitted. Only the data is omitted, the text and formatting attributes are saved.
TextFieldsAll kind of text fields are omitted.
TrackedChangesTracked changes are omitted. Only the markup is omitted, the text and formatting attributes belonging to the tracked change are saved.

Examples

The following example exports a clean review copy without tracked-change markup.

SaveSettings saveSettings = new()
{
    OmittedContent = OmittedContent.TrackedChanges
};
textControl.Save("approved-document.docx", StreamType.WordprocessingML, saveSettings);

Limitations

This property cannot be used when a document is saved with Adobe PDF or Adobe PDF/A format.