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.
auto_size_mode.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 auto_size_mode {
20  grow_and_shrink = 0,
22  grow_only = 1,
23  };
24 
26  inline std::ostream& operator<<(std::ostream& os, auto_size_mode value) {return os << to_string(value, {{auto_size_mode::grow_and_shrink, "grow_and_shrink"}, {auto_size_mode::grow_only, "grow_only"}});}
27  inline std::wostream& operator<<(std::wostream& os, auto_size_mode value) {return os << to_string(value, {{auto_size_mode::grow_and_shrink, L"grow_and_shrink"}, {auto_size_mode::grow_only, L"grow_only"}});}
29  }
30 }
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
auto_size_mode
Specifies how a control will behave when its auto_size property is enabled.
Definition: auto_size_mode.h:18
@ grow_only
The control grows as much as necessary to fit its contents but does not shrink smaller than the value...
@ grow_and_shrink
The control grows or shrinks to fit its contents. The control cannot be resized manually.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::ustring class.