BackColor Property
- Namespace
TXTextControl.Drawing
- Package
TXTextControl.asTextControl. Core. SDK TXDrawing.from the private NuGet feed or Text Control Offline Packagesdll
- Also in
TXTextControl.asTextControl. ASP. SDK 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; }Public Property BackColor As ColorExamples
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}");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.