TX Text Control .NET for Windows Forms

BackgroundStyle Property

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

Description

Defines the kind of view to display the page background. The settings have only effect, if the ViewMode property has been set to PageView.

Syntax

public BackgroundStyle BackgroundStyle { get; set; }

Members

ValueDescription
ColorSchemeThe page background colors depend on the color scheme currently set through the system or on the colors set with the DisplayColors property.
ClassicColorsThe page background color is dark gray.

Examples

The following example uses TextControl.BackgroundStyle to configure background style as part of the text control workflow. The change is then applied to the active document or user interface.

textControl.BackgroundStyle = BackgroundStyle.ColorScheme;
textControl.Update();