TX Text Control .NET for Windows Forms

SaveDocumentBackColor Property

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

Description

Specifies whether or not the document background color is saved. By default it is saved.

Syntax

public bool SaveDocumentBackColor { get; set; }

Examples

The following example configures how the current document is exported to WordprocessingML by using SaveSettings.SaveDocumentBackColor.

textControl.Text = "Quarterly results";
SaveSettings saveSettings = new();

saveSettings.SaveDocumentBackColor = true;
if (saveSettings.SaveDocumentBackColor)
{
    Console.WriteLine("Save Settings: Save Document Back Color is enabled.");
}

textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings);