HeaderPane
Main
Hide
Share Link
Print

BackColor Property, SftDate Object

Defines the field's background color.

Syntax

Get

C#System.Drawing.Color Clr = object.BackColor;
System.Drawing.Color Clr = object.CtlBackColor;
VB.NETClr = object.BackColor As System.Drawing.Color
Clr = object.CtlBackColor As System.Drawing.Color
C++OLE_COLOR Clr = object->BackColor;
OLE_COLOR Clr = object->GetBackColor();
CHRESULT object->get_BackColor(OLE_COLOR* Clr);

Put

C#System.Drawing.Color object.BackColor = Clr;
System.Drawing.Color object.CtlBackColor = Clr;
VB.NETobject.BackColor = Clr As System.Drawing.Color
object.CtlBackColor = Clr As System.Drawing.Color
C++OLE_COLOR object->BackColor = Clr;
void object->PutBackColor(OLE_COLOR Clr);
CHRESULT object->put_BackColor(OLE_COLOR Clr);

object

A SftDate object.

Clr

Defines the field's background color.

Comments

The BackColor property defines the background color of the date field control. The default is colorSftDateDefault (-1), a color that follows the system colors, dark mode (DarkMode) and high contrast. p A color defined by the application is used as given, in light and dark mode alike, and is ignored while high contrast is active. The background of the dropdown calendar is defined using Calendar.BackColor. p In Windows Forms, the wrapper class names the property CtlBackColor, a System.Drawing.Color. The default color (-1) can only be set through the control's interface (GetOcx).

See Also SftDate Object | Object Hierarchy | Colors


Last Updated 11/29/2026 - (email)
© 2026 Softel vdm, Inc.