Contains month calendar native API.
Protected Static Methods | |||||
Sets the array of xtd::date_time objects that determines which annual days are displayed in bold.
| |||||
static void | annually_bolded_dates (intptr control, const std::vector< xtd::date_time > &dates) | ||||
static void | bolded_dates (intptr control, const std::vector< xtd::date_time > &dates) | ||||
Sets the array of xtd::date_time bjects that determines which nonrecurring dates are displayed in bold. | |||||
static void | calendar_dimensions (intptr control, const xtd::drawing::size &calendar_dimensions) | ||||
Sets the number of columns and rows of months displayed. | |||||
static void | allowable_dates (intptr control, date_time min_date, date_time max_date) | ||||
Sets allowable date range to the calendar. | |||||
static void | first_day_of_week (intptr control, uint32 day) | ||||
Sets the first day of the week as displayed in the month calendar. | |||||
static std::tuple< uint32, xtd::date_time > | hit_test (intptr control, const xtd::drawing::point &point) | ||||
Returns informations on which portion of a month calendar control is at a location specified by a xtd::drawing::point. | |||||
static void | max_selection_count (intptr control, uint32 value) | ||||
Sets the maximum number of days that can be selected in a month calendar control. | |||||
static void | monthly_bolded_dates (intptr control, const std::vector< xtd::date_time > &dates) | ||||
Sets the array of xtd::date_time objects that determine which monthly days to bold. | |||||
static void | selection_range (intptr control, date_time date_start, date_time date_end) | ||||
Sets selection range to the calendar. | |||||
static xtd::collections::generic::key_value_pair< date_time, date_time > | selection_range (intptr control) | ||||
Gets selection range from the calendar. | |||||
static xtd::drawing::size | single_month_size (intptr control) | ||||
Gets the minimum size to display one month of the calendar. | |||||
static void | title_back_color (intptr control, const xtd::drawing::color &color) | ||||
Sets a value indicating the background color of the title area of the calendar. | |||||
static void | title_fore_color (intptr control, const xtd::drawing::color &color) | ||||
Sets a value indicating the foreground color of the title area of the calendar. | |||||
static void | today_date (intptr control, const xtd::date_time &value) | ||||
Sets the value that is used by month_calendar as today's date. | |||||
static void | trailing_fore_color (intptr control, const xtd::drawing::color &color) | ||||
Sets a value indicating the color of days in months that are not fully displayed in the control. | |||||
|
staticprotected |
Sets the array of xtd::date_time bjects that determines which nonrecurring dates are displayed in bold.
control | month calendar handle. |
dates | An array of xtd::date_time objects. |
|
staticprotected |
Sets the number of columns and rows of months displayed.
control | month calendar handle. |
calendar_dimensions | A xtd::drawing::size with the number of columns and rows to use to display the calendar. |
|
staticprotected |
Sets allowable date range to the calendar.
control | month calendar handle. |
min_date | The minimum date allowable to the calendar. |
max_date | The maximum date allowable to the calendar. |
|
staticprotected |
Sets the first day of the week as displayed in the month calendar.
day | One of following day values :
|
|
staticprotected |
Returns informations on which portion of a month calendar control is at a location specified by a xtd::drawing::point.
point | A xtd::drawing::point containing the xtd::drawing::point::x and xtd::drawing::point::y coordinates of the point to be hit tested. |
Value | hit area |
---|---|
0 | nowhere |
1 | title_background |
2 | title_month |
3 | title_year |
4 | next_month_button |
5 | prev_month_button |
6 | calendar_background |
7 | date |
8 | next_month_date |
9 | prev_month_date |
10 | day_of_week |
11 | week_numbers |
12 | today_link |
|
staticprotected |
Sets the maximum number of days that can be selected in a month calendar control.
control | month calendar handle. |
value | The maximum number of days that you can select. The default is 7. |
|
staticprotected |
Sets the array of xtd::date_time objects that determine which monthly days to bold.
control | month calendar handle. |
dates | An array of xtd::date_time objects. |
|
staticprotected |
Sets selection range to the calendar.
control | month_calendar handle. |
date_start | The range date start. |
|
staticprotected |
Gets selection range from the calendar.
control | month_calendar handle. |
|
staticprotected |
Gets the minimum size to display one month of the calendar.
control | month_calendar handle. |
|
staticprotected |
Sets a value indicating the background color of the title area of the calendar.
control | month_calendar handle. |
color | A xtd::drawing::color. |
|
staticprotected |
Sets a value indicating the foreground color of the title area of the calendar.
control | month_calendar handle. |
color | A xtd::drawing::color. |
|
staticprotected |
Sets the value that is used by month_calendar as today's date.
control | month_calendar handle. |
value | A xtd::date_time representing today's date. |
|
staticprotected |
Sets a value indicating the color of days in months that are not fully displayed in the control.
control | month_calendar handle. |
color | A xtd::drawing::color. |