Wisej.Web.Markup.DateTimePickerExtensions
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.0.0.0)
Adds fluent markup extension methods to the DateTimePicker class.
Sets a custom date and time format string for the specified DateTimePicker control.
TDateTimePicker
dateTimePicker
The date time picker for which to set the custom format.
format
The custom format string to be applied to the date time picker.
Returns: TDateTimePicker. The date time picker with the updated custom format.
This method sets the Format property to Custom and applies the specified custom format string.
Sets the format for displaying date and time in the specified DateTimePicker control.
TDateTimePicker
dateTimePicker
The date time picker for which to set the format.
format
Returns: TDateTimePicker. The date time picker with the updated format.
This method allows you to set the format of the date and time displayed in the date time picker using predefined formats.
Sets the maximum date and time that can be selected in the specified DateTimePicker.
TDateTimePicker
dateTimePicker
value
The maximum date and time value to set.
Returns: TDateTimePicker. The DateTimePicker with the updated maximum date.
This method allows you to specify the latest date and time that can be selected by the user.
Sets the minimum date and time that can be selected in the specified DateTimePicker.
TDateTimePicker
dateTimePicker
value
The minimum date and time value to set.
Returns: TDateTimePicker. The DateTimePicker with the updated minimum date.
This method allows you to specify the earliest date and time that can be selected by the user.
Attaches an event handler to the ValueChanged event.
TDateTimePicker
dateTimePicker
action
The action to perform when the value changes.
Returns: TDateTimePicker. The DateTimePicker with the event handler attached.
This method allows you to execute a specified action whenever the value of the DateTimePicker changes.
Sets the value of the specified DateTimePicker control and returns the control.
TDateTimePicker
dateTimePicker
value
Returns: TDateTimePicker. The DateTimePicker control with the updated value.
This method allows for fluent syntax when setting the value of a DateTimePicker control.
The type of the date time picker, which must inherit from .
The type of the date time picker, which must inherit from .
The format to be applied to the date time picker, specified as a value.
The type of the .
The to set the maximum date for.
The type of the .
The to set the minimum date for.
The type of the .
The to attach the event handler to.
The type of the control.
The control to set the value for.
The value to set.