Skip to content

API DateTimePicker

Thomas Baker edited this page Jul 11, 2021 · 4 revisions

DateTimePickerExtensions

public static class DateTimePickerExtensions

Summary

Fluent extensions for DateTimePicker controls

Members

CustomFormat

public static TDateTimePicker CustomFormat<TDateTimePicker>(this TDateTimePicker dateTimePicker, 
    string format)
    where TDateTimePicker : DateTimePicker

Sets the DateTimePicker.CustomFormat property, also sets the DateTimePicker.Format property to DateTimePickerFormat.Custom, and then returns a reference to the control.

Parameters

Name Summary
dateTimePicker
format

See Also

  • public class DateTimePicker : Control
  • public class TDateTimePicker : DateTimePicker

Format

public static TDateTimePicker Format<TDateTimePicker>(this TDateTimePicker dateTimePicker, 
    DateTimePickerFormat format)
    where TDateTimePicker : DateTimePicker

Sets the DateTimePicker.Format property, and returns a reference to the control.

Parameters

Name Summary
dateTimePicker
format

See Also

  • public class DateTimePicker : Control
  • public enum DateTimePickerFormat
  • public class TDateTimePicker : DateTimePicker