OmittedContent Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Specifies data to be omitted when the document is saved.
Syntax
public OmittedContent OmittedContent { get; set; }Public Property OmittedContent As OmittedContentMembers
| Value | Description |
|---|---|
| None | Nothing is omitted. |
| Comments | Comments are omitted. |
| EditableRegions | Editable regions are omitted. Only the region markers are omitted, the text and formatting attributes belonging to the editable region are saved. |
| Footnotes | Footnotes are omitted. |
| SubTextParts | Subtextparts are omitted. Only the subtextpart is omitted, the text and formatting attributes belonging to the subtextpart are saved. |
| Sections | Section data is omitted. |
| TablesOfContents | Tables of contents are omitted. Only the data is omitted, the text and formatting attributes are saved. |
| TextFields | All kind of text fields are omitted. |
| TrackedChanges | Tracked 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);Dim saveSettings As New SaveSettings() With {
.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.