System.Windows.Forms.DateTimePicker: Property Members

The properties of System.Windows.Forms.DateTimePicker are listed below. For a list of all members, see the DateTimePicker Members list.

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

Public Properties

override
BackColorSystem.Drawing.Color.

Gets or sets a value indicating the background color of the System.Windows.Forms.DateTimePicker control.

override
BackgroundImageSystem.Drawing.Image.

Gets or sets the background image for the control.

override
BackgroundImageLayoutImageLayout.

Gets or sets the layout of the background image of the System.Windows.Forms.DateTimePicker control.

CalendarFontSystem.Drawing.Font.

Gets or sets the font style applied to the calendar.

CalendarForeColorSystem.Drawing.Color.

Gets or sets the foreground color of the calendar.

CalendarMonthBackgroundSystem.Drawing.Color.

Gets or sets the background color of the calendar month.

CalendarTitleBackColorSystem.Drawing.Color.

Gets or sets the background color of the calendar title.

CalendarTitleForeColorSystem.Drawing.Color.

Gets or sets the foreground color of the calendar title.

CalendarTrailingForeColorSystem.Drawing.Color.

Gets or sets the foreground color of the calendar trailing dates.

Checkedbool.

Gets or sets a value indicating whether the DateTimePicker.Value property has been set with a valid date/time value and the displayed value is able to be updated.

CustomFormatstring.

Gets or sets the custom date/time format string.

DropDownAlignLeftRightAlignment.

Gets or sets the alignment of the drop-down calendar on the System.Windows.Forms.DateTimePicker control.

override
ForeColorSystem.Drawing.Color.

Gets or sets the foreground color of the System.Windows.Forms.DateTimePicker control.

FormatDateTimePickerFormat.

Gets or sets the format of the date and time displayed in the control.

MaxDateDateTime.

Gets or sets the maximum date and time that can be selected in the control.

[read-only]
static
MaximumDateTimeDateTime.

Gets the maximum date value allowed for the System.Windows.Forms.DateTimePicker control.

MinDateDateTime.

Gets or sets the minimum date and time that can be selected in the control.

[read-only]
static
MinimumDateTimeDateTime.

Gets the minimum date value allowed for the System.Windows.Forms.DateTimePicker control.

PaddingPadding.

Gets or sets the spacing between the contents of the System.Windows.Forms.DateTimePicker control and its edges.

[read-only]
PreferredHeightint.

Gets the preferred height of the System.Windows.Forms.DateTimePicker control.

RightToLeftLayoutbool.

Gets or sets whether the contents of the System.Windows.Forms.DateTimePicker are laid out from right to left.

ShowCheckBoxbool.

Gets or sets a value indicating whether a check box is displayed to the left of the selected date.

ShowUpDownbool.

Gets or sets a value indicating whether a spin button control (also known as an up-down control) is used to adjust the date/time value.

override
Textstring.

Gets or sets the text associated with this control.

ValueDateTime.

Gets or sets the date/time value assigned to the control.

Protected Properties

[read-only]
override
CreateParamsCreateParams.

Returns the System.Windows.Forms.CreateParams used to create this window.

[read-only]
override
DefaultSizeSystem.Drawing.Size. Documentation for this section has not yet been entered.
override
DoubleBufferedbool.

Gets or sets a value indicating whether the control should redraw its surface using a secondary buffer. Setting this property has no effect on the System.Windows.Forms.DateTimePicker control.