TX Text Control .NET Server

LoadDocumentBackColor Property

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

Description

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

Syntax

public bool LoadDocumentBackColor { get; set; }

Examples

The following example configures how a WordprocessingML template is loaded by using LoadSettings.LoadDocumentBackColor.

LoadSettings loadSettings = new();

loadSettings.LoadDocumentBackColor = true;
if (loadSettings.LoadDocumentBackColor)
{
    Console.WriteLine("Load Settings: Load Document Back Color is enabled.");
}

textControl.Load("template.docx", StreamType.WordprocessingML, loadSettings);