DisabledForeColor Property, SftDateCalendar Object
Defines the color of days that cannot be selected.
Syntax
Get
| C# | uint Clr = object.DisabledForeColor; |
| VB.NET | Clr = object.DisabledForeColor As UInteger |
| C++ | OLE_COLOR Clr = object->DisabledForeColor; OLE_COLOR Clr = object->GetDisabledForeColor(); |
| C | HRESULT object->get_DisabledForeColor(OLE_COLOR* Clr); |
Put
| C# | uint object.DisabledForeColor = Clr; |
| VB.NET | object.DisabledForeColor = Clr As UInteger |
| C++ | OLE_COLOR object->DisabledForeColor = Clr; void object->PutDisabledForeColor(OLE_COLOR Clr); |
| C | HRESULT object->put_DisabledForeColor(OLE_COLOR Clr); |
object
A SftDateCalendar object.
Clr
Defines the color of days that cannot be selected.
Comments
The DisabledForeColor property defines the color of days that cannot be selected: days before MinDate or after MaxDate, disabled days of the week (DisabledDaysOfWeek) and disabled special dates. The default is colorSftDateDefault (-1), a color that follows the system colors, dark mode and high contrast.
See Also SftDateCalendar Object | Object Hierarchy | Colors