[]
        
(Showing Draft Content)

C1.Win.Calendar.C1DateEdit

C1DateEdit Class

Displays and edits date and/or time values. Includes a dropdown calendar for easy input of datetime values.

Implements
IDropDownOwner
ISupportUiaContainer
IUiaExpandCollapseProvider
IEmbeddedEditor
Namespace: C1.Win.Calendar
Assembly: C1.Win.Calendar.8.dll
Syntax
[ToolboxBitmap(typeof(C1DateEdit), "C1DateEdit.png")]
public class C1DateEdit : C1DropDownEditorBase, ISupportInitialize, IDropDownOwner, ISupportUiaContainer, IDropDownEditorBase, IDropDownControlBase, IUiaExpandCollapseProvider, IInputEditor, IEmbeddedEditor

Constructors

Name Description
C1DateEdit()

Initializes a new instance of the C1DateEdit class.

Properties

Name Description
AllowSpinLoop

Gets or sets a value determines whether the spinner moves to the MinDate when it reaches the MaxDate, or to the MaxDate when it reaches the MinDate.

AutoChangePosition

Gets or sets a value indicating whether the position of the character is automatically changed

Calendar

Gets or sets the settings of drop down calendar.

CultureInfo

Get or sets current culture for the calendar.

FormatType

Gets or sets enumeration value determining the formatting method, including standard .NET format specifiers, custom and programmatic formatting.

InitialField

Gets or sets a value determines the date-time field position when a control receives input focus.

LoopPosition

Gets or sets a value indicating whether the position of the caret is automatically moved to the first field when the last field is filled.

MinShortYear

The minimum year that can be entered without leading zeros.

RetainTimeOnDateChange

Gets or sets a value indicating whether to retain the current time value when the date is changed via the drop down calendar.

Styles

Gets or sets the C1DateEdit styles.

WrapDateTimeFields

If this property is False the month will be automatically incremented when the user spins the date past the end of the month. The same about other parts of the date/time value.

Methods

Name Description
ApplyStyle()

Applies the style to control view.

CreateDropDownForm()

Creates the drop down form.

Dispose(bool)

Releases the resources used by the C1DateEdit.

GetDropDownItem(UiaItem)

Gets the C1.Win.Accessibility.UiaItem from the drop down part of this C1DropDownControlBase control.

OnBeforeDayTooltipShow(BeforeDayTooltipShowEventArgs)

Rises the BeforeDayTooltipShow event.

OnClearButtonClick(EventArgs)

Raises the ClearButtonClick event.

OnDataTypeChanged(EventArgs)

Raises the DataTypeChanged event.

OnDateValueSelected(NullableDateTimeEventArgs)

Raises the DateValueSelected event.

OnDateValueSelecting(DateChangingEventArgs)

Raises the DateValueSelecting event.

OnDayFormatting(DayFormattingEventArgs)

Rises the DayFormatting event.

OnDisplayRangeChanged(DateRangeEventArgs)

Rises the DisplayRangeChanged event.

OnDropDownClosed(EventArgs)

Raises the DropDownClosed event.

OnDropDownOpening(CancelEventArgs)

Raises the DropDownOpening event.

OnUpDownButtonClick(UpDownButtonClickEventArgs)

This method is for internal use only.

ResetDropDownWidth()

Restores the default value of the DropDownWidth property.

ShouldSerializeDropDownWidth()

Specifies whether to save the value of the DropDownWidth property.

SpinDown()

Performs spin down.

SpinDown(TimeSpan)

Performs spin down.

SpinUp()

Performs spin up.

SpinUp(TimeSpan)

Performs spin up.

Events

Name Description
BeforeDayTooltipShow

Occurs before the day tooltip is shown.

ClearButtonClick

Occurs when Clear button of the drop-down calendar is clicked.

DateValueSelected

Occurs when Date in drop-down calendar is selected.

DateValueSelecting

Occurs before Date in drop-down calendar will be selected.

DayFormatting

Occurs before applying styles to a day.

DisplayRangeChanged

Occurs when display range in drop-down calendar is changed.