System.Windows.Forms.MonthCalendar Members

The members of System.Windows.Forms.MonthCalendar are listed below.

See Also: Inherited members from System.Windows.Forms.Control

Public Constructors

Initializes a new instance of the System.Windows.Forms.MonthCalendar class.

Public Properties

AnnuallyBoldedDatesDateTime[].

Gets or sets the array of DateTime objects that determines which annual days are displayed in bold.

override
BackColorSystem.Drawing.Color.

Gets or sets the background color for the control.

override
BackgroundImageSystem.Drawing.Image.

Gets or sets the background image for the System.Windows.Forms.MonthCalendar

override
BackgroundImageLayoutImageLayout.

Gets or sets a value indicating the layout for the MonthCalendar.BackgroundImage.

BoldedDatesDateTime[].

Gets or sets the array of DateTime objects that determines which nonrecurring dates are displayed in bold.

CalendarDimensionsSystem.Drawing.Size.

Gets or sets the number of columns and rows of months displayed.

FirstDayOfWeekDay.

Gets or sets the first day of the week as displayed in the month calendar.

override
ForeColorSystem.Drawing.Color.

Gets or sets the foreground color of the control.

ImeModeImeMode.

Gets or sets the Input Method Editor (IME) mode supported by this control.

MaxDateDateTime.

Gets or sets the maximum allowable date.

MaxSelectionCountint.

Gets or sets the maximum number of days that can be selected in a month calendar control.

MinDateDateTime.

Gets or sets the minimum allowable date.

MonthlyBoldedDatesDateTime[].

Gets or sets the array of DateTime objects that determine which monthly days to bold.

PaddingPadding.

Gets or sets the space between the edges of a System.Windows.Forms.MonthCalendar control and its contents.

RightToLeftLayoutbool.

Gets or sets a value indicating whether the control is laid out from right to left.

ScrollChangeint.

Gets or sets the scroll rate for a month calendar control.

SelectionEndDateTime.

Gets or sets the end date of the selected range of dates.

SelectionRangeSelectionRange.

Gets or sets the selected range of dates for a month calendar control.

SelectionStartDateTime.

Gets or sets the start date of the selected range of dates.

ShowTodaybool.

Gets or sets a value indicating whether the date represented by the MonthCalendar.TodayDate property is displayed at the bottom of the control.

ShowTodayCirclebool.

Gets or sets a value indicating whether today's date is identified with a circle or a square.

ShowWeekNumbersbool.

Gets or sets a value indicating whether the month calendar control displays week numbers (1-52) to the left of each row of days.

[read-only]
SingleMonthSizeSystem.Drawing.Size.

Gets the minimum size to display one month of the calendar.

SizeSystem.Drawing.Size.

Gets or sets the size of the System.Windows.Forms.MonthCalendar control.

override
Textstring.

Gets or sets the text to display on the System.Windows.Forms.MonthCalendar.

TitleBackColorSystem.Drawing.Color.

Gets or sets a value indicating the background color of the title area of the calendar.

TitleForeColorSystem.Drawing.Color.

Gets or sets a value indicating the foreground color of the title area of the calendar.

TodayDateDateTime.

Gets or sets the value that is used by System.Windows.Forms.MonthCalendar as today's date.

[read-only]
TodayDateSetbool.

Gets a value indicating whether the MonthCalendar.TodayDate property has been explicitly set.

TrailingForeColorSystem.Drawing.Color.

Gets or sets a value indicating the color of days in months that are not fully displayed in the control.

Protected Properties

[read-only]
override
CreateParamsCreateParams.

Gets a System.Windows.Forms.CreateParams for creating a System.Windows.Forms.MonthCalendar control.

[read-only]
override
DefaultImeModeImeMode.

Gets a value indicating the input method editor for the System.Windows.Forms.MonthCalendar.

[read-only]
override
DefaultMarginPadding.

Gets the default margin settings for the System.Windows.Forms.MonthCalendar control.

[read-only]
override
DefaultSizeSystem.Drawing.Size.

Gets the default size of the calendar.

override
DoubleBufferedbool.

Gets or sets a value indicating whether the control should redraw its surface using a secondary buffer.

Public Methods

AddAnnuallyBoldedDate(DateTime)

Adds a day that is displayed in bold on an annual basis in the month calendar.

AddBoldedDate(DateTime)

Adds a day to be displayed in bold in the month calendar.

AddMonthlyBoldedDate(DateTime)

Adds a day that is displayed in bold on a monthly basis in the month calendar.

GetDisplayRange(bool) : SelectionRange

Retrieves date information that represents the low and high limits of the displayed dates of the control.

HitTest(System.Drawing.Point) : MonthCalendar.HitTestInfo

Returns an object with information on which portion of a month calendar control is at a location specified by a System.Drawing.Point.

HitTest(int, int) : MonthCalendar.HitTestInfo

Returns a System.Windows.Forms.MonthCalendar.HitTestInfo with information on which portion of a month calendar control is at a specified x- and y-coordinate.

RemoveAllAnnuallyBoldedDates()

Removes all the annually bold dates.

RemoveAllBoldedDates()

Removes all the nonrecurring bold dates.

RemoveAllMonthlyBoldedDates()

Removes all the monthly bold dates.

RemoveAnnuallyBoldedDate(DateTime)

Removes the specified date from the list of annually bold dates.

RemoveBoldedDate(DateTime)

Removes the specified date from the list of nonrecurring bold dates.

RemoveMonthlyBoldedDate(DateTime)

Removes the specified date from the list of monthly bolded dates.

SetCalendarDimensions(int, int)

Sets the number of columns and rows of months to display.

SetDate(DateTime)

Sets a date as the currently selected date.

SetSelectionRange(DateTime, DateTime)

Sets the selected dates in a month calendar control to the specified date range.

override
ToString() : string

Returns a string that represents the System.Windows.Forms.MonthCalendar control.

UpdateBoldedDates()

Repaints the bold dates to reflect the dates set in the lists of bold dates.

Protected Methods

override
CreateHandle()

Overrides the Control.CreateHandle method.

override
Dispose(bool)

Releases all resources used by the System.Windows.Forms.MonthCalendar.

override
IsInputKey(Keys) : bool
Documentation for this section has not yet been entered.
override
OnBackColorChanged(EventArgs)
Documentation for this section has not yet been entered.
OnDateChanged(DateRangeEventArgs)

Raises the MonthCalendar.DateChanged event.

OnDateSelected(DateRangeEventArgs)

Raises the MonthCalendar.DateSelected event.

override
OnFontChanged(EventArgs)

Raises the Control.FontChanged event.

override
OnForeColorChanged(EventArgs)
Documentation for this section has not yet been entered.
override
OnHandleCreated(EventArgs)

Overrides the Control.OnHandleCreated(EventArgs) method.

override
OnHandleDestroyed(EventArgs)

Raises the Control.HandleDestroyed event.

OnRightToLeftLayoutChanged(EventArgs)

Raises the MonthCalendar.RightToLeftLayoutChanged event.

override
SetBoundsCore(int, int, int, int, BoundsSpecified)

Overrides the Control.SetBoundsCore(int, int, int, int, BoundsSpecified) method.

override
WndProc(ref Message)
Documentation for this section has not yet been entered.

Public Events

BackgroundImageChanged

Occurs when the value of the MonthCalendar.BackgroundImage property changes.

BackgroundImageLayoutChanged

Occurs when the MonthCalendar.BackgroundImageLayout property changes.

Click

Occurs when the user clicks the System.Windows.Forms.MonthCalendar control.

DateChanged

Occurs when the date selected in the System.Windows.Forms.MonthCalendar changes.

DateSelected

Occurs when the user makes an explicit date selection using the mouse.

DoubleClick

Occurs when the user double-clicks the System.Windows.Forms.MonthCalendar control.

ImeModeChanged

Occurs when the MonthCalendar.ImeMode property has changed.

MouseClick

Occurs when the user clicks the System.Windows.Forms.MonthCalendar control with the mouse.

MouseDoubleClick

Occurs when the user double-clicks the System.Windows.Forms.MonthCalendar control with the mouse.

PaddingChanged

Occurs when the value of the MonthCalendar.Padding property changes.

Paint

Occurs when the control is redrawn.

RightToLeftLayoutChanged

Occurs when the value of the MonthCalendar.RightToLeftLayout property changes.

TextChanged

Occurs when the value of the MonthCalendar.Text property changes.