DTPickerFormatConstants
选择 DTPicker 控件使用的显示格式。由 DTPicker.Format 属性使用。
当设置为 dtpCustom 时,选择器还会读取 DTPicker.CustomFormat 来控制实际显示。
| 成员 | 值 | 描述 |
|---|---|---|
| dtpLongDate | 0 | 长日期格式,例如 "Tuesday, January 14, 2025"。 |
| dtpShortDate | 1 | 短日期格式,例如 "1/14/2025"。 |
| dtpTime | 2 | 时间格式,例如 "3:45:00 PM"。 |
| dtpCustom | 3 | 来自 CustomFormat 的自定义图片字符串。 |
另见
- DTPicker —— 使用该枚举的控件