xtd 0.2.0
auto_size_mode.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/enum>
6 
8 namespace xtd {
10  namespace forms {
20  enum class auto_size_mode {
22  grow_and_shrink = 0,
24  grow_only = 1,
25  };
26  }
27 }
28 
30 template<> struct xtd::enum_register<xtd::forms::auto_size_mode> {
31  explicit operator auto() const noexcept {return xtd::enum_collection<xtd::forms::auto_size_mode> {{xtd::forms::auto_size_mode::grow_and_shrink, "grow_and_shrink"}, {xtd::forms::auto_size_mode::grow_only, "grow_only"}};}
32 };
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
auto_size_mode
Specifies how a control will behave when its auto_size property is enabled.
Definition: auto_size_mode.h:20
The control grows or shrinks to fit its contents. The control cannot be resized manually.
std::vector< std::pair< enum_t, xtd::ustring > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition: enum_collection.h:19
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
The control grows as much as necessary to fit its contents but does not shrink smaller than the value...
Provides the registration struct for enumerations.
Definition: enum_register.h:36