BackColor Property
- Namespace
TXTextControl.Drawing
- Package
TXTextControl.asTextControl. WinForms. SDK TXDrawing.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
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; }Public Overrides Property BackColor As ColorExamples
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();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.