TX Text Control .NET for Windows Forms

BackColor Property

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

Description

Gets or sets the TX Drawing Control's back color. The default value is System.Drawing.Transparent.

Syntax

public override Color BackColor { get; set; }

Examples

The following example uses TXDrawingControl.BackColor to set the txdrawing control's background color. The change is then applied to the active document or user interface.

tXDrawingControl.BackColor = System.Drawing.Color.LightSteelBlue;
tXDrawingControl.Update();

Limitations

A control's back color that differs to the default back color is only drawn if the control's IsCanvasVisible property return true. Otherwise the default value is used.