HeaderPane
Main
Hide
Share Link
Print

ForeColor Property, SftDateDayFormatting Object

Defines the day's text color (-1 for the default).

Syntax

Get

C#uint Clr = object.ForeColor;
VB.NETClr = object.ForeColor As UInteger
C++OLE_COLOR Clr = object->ForeColor;
OLE_COLOR Clr = object->GetForeColor();
CHRESULT object->get_ForeColor(OLE_COLOR* Clr);

Put

C#uint object.ForeColor = Clr;
VB.NETobject.ForeColor = Clr As UInteger
C++OLE_COLOR object->ForeColor = Clr;
void object->PutForeColor(OLE_COLOR Clr);
CHRESULT object->put_ForeColor(OLE_COLOR Clr);

object

A SftDateDayFormatting object.

Clr

Defines the day's text color (-1 for the default).

Comments

The ForeColor property defines the text color of the day, -1 (colorSftDateDefault) for the calendar's color. It starts out with the color of the special date that applies. p A color is used as given, in light and dark mode alike; a system color follows the mode. In high contrast mode, the color is ignored.

See Also SftDateDayFormatting Object | Object Hierarchy | Day Formatting


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