A day of a calendar is about to be shown.
| C# | void object_DayFormatting(object sender, AxSftDateLib20._ISftDateEvents_DayFormattingEvent e); |
| VB.NET | Private Sub object_DayFormatting(ByVal sender As Object, ByVal e As AxSftDateLib20._ISftDateEvents_DayFormattingEvent) Handles object.DayFormatting |
| C++ | void OnDayFormattingobject(ISftDateDayFormatting* Day); |
| C | HRESULT OnDayFormattingobject(ISftDateDayFormatting* Day); |
object
Day
A SftDateDayFormatting object describing the day. The application changes its properties to format the day.
The DayFormatting event occurs the first time a calendar shows a day: in a month calendar control, and in the dropdown calendar of a date field control. The Day object holds the formatting of the special date that applies (SpecialDates) and the application can change any of it: colors, bold text, font, picture, tooltip, a text instead of the day number, and whether the day can be selected. p The result is kept until a setting or a special date changes or the application calls Calendar.RefreshDays. The dropdown calendar of a date field control formats its days each time the dropdown opens. p The event occurs while the control paints; the application doesn't change other settings of the control in it.
See Also SftDate Object | Object Hierarchy | Day Formatting