NativeMonthCalendar

Class Overview
Provides operations on windows of WindowClass type SysMonthCal32.



public NativeMonthCalender(WindowControl src)
Explanation
Constructor.

Parameter
         src
                A WindowControl object for the target window



public NativeMonthCalender(WindowsAppFriend app, IntPtr windowHandle)
Explanation
Constructor.

Parameters
app
Application manipulation object
windowHandle
Window handle



public Day FirstDayOfWeek{get;}
Explanation
Returns the day of the week displayed in the leftmost column



public int MaxSelectionCount{get;}
Explanation
Returns the maximum number of days that can be selected



public MonthCalendarView MonthCalenderView{get;}
Explanation
Returns the current display mode



public DateTime SelectedDay{get;}
Explanation
Returns the currently selected date



public DateTime Today{get;}
Explanation
Returns today's date



public void EmulateChangeView(MonthCalendarView view)
Explanation
Set's the calendar's display mode.
Produces a MCN_VIEWCHANGE notification.

Parameter
view
The display mode



public void EmulateChangeView(MonthCalendarView viewAsync async)
Explanation
Sets the calendar's display mode asynchronously.
Produces a MCN_VIEWCHANGE notification.

Parameters
view
The display mode
async
Asynchronous execution object



public void EmulateSelectDay(DateTime day)
Explanation
Sets the selected date.
Produces MCN_SELCHANGE and MCN_SELECT notifications.

Parameter
day
The date to select



public void EmulateSelectDay(DateTime dayAsync async)
Explanation
Sets the selected date.
Produces MCN_SELCHANGE and MCN_SELECT notifications.

Parameters
day
The date to select
async
Asynchronous execution object



public void EmulateSelectDay(DateTime min, DateTime max)
Explanation
Sets the selected date range.
Use this when selecting multiple dates.
Produces MCN_SELCHANGE and MCN_SELECT notifications.

Parameters
min
The start date
max
The end date



public void EmulateSelectDay(DateTime min, DateTime maxAsync async)
Explanation
Sets the selected date range.
Use this when selecting multiple dates.
Produces MCN_SELCHANGE and MCN_SELECT notifications.
 
 
Parameters
min
The start date
max
The end date
async
Asynchronous execution object


public bool GetSelectionRange(ref DateTime min, ref DateTime max)
Explanation
Obtains the currently selected date range.
Use this when multiple dates are selected.

Return value
Success or failure

Parameters
min
The selection start date
max
The selection end date

JR