xtd - Reference Guide
0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
xtd.forms
include
xtd
forms
date_time_picker_format.h
Go to the documentation of this file.
1
#pragma once
5
#include <
xtd/ustring.h
>
6
8
namespace
xtd
{
10
namespace
forms
{
18
enum class
date_time_picker_format
{
20
long_format
= 1,
22
short_format
= 2,
24
time
= 4,
26
custom
= 8,
27
};
28
30
inline
std::ostream& operator<<(std::ostream& os,
date_time_picker_format
value) {
return
os <<
to_string
(value, {{
date_time_picker_format::long_format
,
"long_format"
}, {
date_time_picker_format::short_format
,
"short_format"
}, {
date_time_picker_format::time
,
"time"
}, {
date_time_picker_format::custom
,
"custom"
}});}
31
inline
std::wostream& operator<<(std::wostream& os,
date_time_picker_format
value) {
return
os <<
to_string
(value, {{
date_time_picker_format::long_format
, L
"long_format"
}, {
date_time_picker_format::short_format
, L
"short_format"
}, {
date_time_picker_format::time
, L
"time"
}, {
date_time_picker_format::custom
, L
"custom"
}});}
33
}
34
}
xtd::to_string
std::string to_string(const value_t &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition:
to_string.h:37
xtd::forms::date_time_picker_format
date_time_picker_format
Specifies the date and time format the date_time_picker control displays.
Definition:
date_time_picker_format.h:18
xtd::forms::date_time_picker_format::time
@ time
The date_time_picker control displays the date/time value in the time format set by the user's operat...
xtd::forms::date_time_picker_format::long_format
@ long_format
The date_time_picker control displays the date/time value in the long date format set by the user's o...
xtd::forms::date_time_picker_format::custom
@ custom
The date_time_picker control displays the date/time value in a custom format.
xtd::forms::date_time_picker_format::short_format
@ short_format
The date_time_picker control displays the date/time value in the short date format set by the user's ...
xtd::forms
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition:
about_box.h:13
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition:
system_report.h:17
ustring.h
Contains xtd::ustring class.
Generated on Mon Jul 17 2023 23:13:05 for xtd - Reference Guide by
Gammasoft
. All rights reserved.