TX Text Control .NET Server

BackColor Property

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

Description

Gets or sets the back color of the canvas. The default value is System.Drawing.Transparent.

Syntax

public Color BackColor { get; set; }

Examples

The following example uses TXDrawingCore.BackColor to set the txdrawing core's background color. The configured value is checked before the workflow continues.

tXDrawingCore.BackColor = System.Drawing.Color.LightSteelBlue;
Console.WriteLine($"Back Color used by TXDrawing Core: {tXDrawingCore.BackColor}");

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.