SaveDocumentBackColor Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Specifies whether or not the document background color is saved. By default it is saved.
Syntax
public bool SaveDocumentBackColor { get; set; }Public Property SaveDocumentBackColor As BooleanExamples
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);textControl.Text = "Quarterly results"
Dim saveSettings As New SaveSettings()
saveSettings.SaveDocumentBackColor = True
If saveSettings.SaveDocumentBackColor Then
Console.WriteLine("Save Settings: Save Document Back Color is enabled.")
End If
textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings)