A day of a calendar is about to be shown.
| C# | void object_DayFormatting(object sender, AxSftDateLib20._ISftCalendarEvents_DayFormattingEvent e); |
| VB.NET | Private Sub object_DayFormatting(ByVal sender As Object, ByVal e As AxSftDateLib20._ISftCalendarEvents_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.
End Sub
Private Sub field_DayFormatting(sender As Object, e As _ISftDateEvents_DayFormattingEvent) Handles fieldDate.DayFormatting, fieldLongDate.DayFormatting,
fieldTimeList.DayFormatting, fieldTimeClock.DayFormatting, fieldDateTime.DayFormatting, fieldRange.DayFormatting,
fieldOptional.DayFormatting, fieldEmpty.DayFormatting, fieldFreeForm.DayFormatting, fieldCustom.DayFormatting
FormatDay(e.day)
End Sub
Private Sub sftCalendar_DayFormatting(sender As Object, e As _ISftCalendarEvents_DayFormattingEvent) Handles sftCalendar.DayFormatting
FormatDay(e.day)
End Sub
Private Sub option_Changed(sender As Object, e As EventArgs) Handles comboCulture.SelectedIndexChanged, comboDarkMode.SelectedIndexChanged,
comboHighContrast.SelectedIndexChanged, comboButtons.SelectedIndexChanged, comboBorder.SelectedIndexChanged,
comboAlignment.SelectedIndexChanged, comboAcross.SelectedIndexChanged, comboDown.SelectedIndexChanged,
comboWeekNumbers.SelectedIndexChanged, comboFirstDay.SelectedIndexChanged, comboViews.SelectedIndexChanged,See Also SftCalendar Object | Object Hierarchy | Day Formatting