Implements the basic functionality that represents the appearance and behavior of a control layout.
Constructors | |
| horizontal_control_layout_style ()=default | |
| Initialises a new instance of horizontal control layout style class. More... | |
| horizontal_control_layout_style (float width) | |
| Initialises a new instance of horizontal control layout style class with specified width. More... | |
| horizontal_control_layout_style (int32 width) | |
| Initialises a new instance of horizontal control layout style class with specified width. More... | |
| horizontal_control_layout_style (xtd::forms::size_type size_type) | |
| Initialises a new instance of horizontal control layout style class with specified size type. More... | |
| horizontal_control_layout_style (float width, xtd::forms::size_type size_type) | |
| Initialises a new instance of horizontal control layout style class with specified width and size type. More... | |
| horizontal_control_layout_style (int32 width, xtd::forms::size_type size_type) | |
| Initialises a new instance of horizontal control layout style class with specified width and size type. More... | |
| horizontal_control_layout_style (bool expanded) | |
| Initialises a new instance of horizontal control layout style class with specified expanded. More... | |
| horizontal_control_layout_style (float width, bool expanded) | |
| Initialises a new instance of horizontal control layout style class with specified width and expanded. More... | |
| horizontal_control_layout_style (int32 width, bool expanded) | |
| Initialises a new instance of horizontal control layout style class with specified width and expanded. More... | |
| horizontal_control_layout_style (xtd::forms::content_alignment align) | |
| Initialises a new instance of horizontal control layout style class with specified content alignment. More... | |
| horizontal_control_layout_style (float width, xtd::forms::content_alignment align) | |
| Initialises a new instance of horizontal control layout style class with specified width and content alignment. More... | |
| horizontal_control_layout_style (int32 width, xtd::forms::content_alignment align) | |
| Initialises a new instance of horizontal control layout style class with specified width and content alignment. More... | |
| horizontal_control_layout_style (xtd::forms::size_type size_type, bool expanded) | |
| Initialises a new instance of horizontal control layout style class with specified size type and expanded. More... | |
| horizontal_control_layout_style (float width, xtd::forms::size_type size_type, bool expanded) | |
| Initialises a new instance of horizontal control layout style class with specified width, size type and expanded. More... | |
| horizontal_control_layout_style (int32 width, xtd::forms::size_type size_type, bool expanded) | |
| Initialises a new instance of horizontal control layout style class with specified width, size type and expanded. More... | |
| horizontal_control_layout_style (xtd::forms::size_type size_type, xtd::forms::content_alignment align) | |
| Initialises a new instance of horizontal control layout style class with specified size type and content alignment. More... | |
| horizontal_control_layout_style (float width, xtd::forms::size_type size_type, xtd::forms::content_alignment align) | |
| Initialises a new instance of horizontal control layout style class with specified width, size type and content alignment. More... | |
| horizontal_control_layout_style (int32 width, xtd::forms::size_type size_type, xtd::forms::content_alignment align) | |
| Initialises a new instance of horizontal control layout style class with specified width, size type and content alignment. More... | |
| horizontal_control_layout_style (xtd::forms::size_type size_type, bool expanded, xtd::forms::content_alignment align) | |
| Initialises a new instance of horizontal control layout style class with specified size type, expanded and content alignment. More... | |
| horizontal_control_layout_style (float width, xtd::forms::size_type size_type, bool expanded, xtd::forms::content_alignment align) | |
| Initialises a new instance of horizontal control layout style class with specified width, size type, expanded and content alignment. More... | |
| horizontal_control_layout_style (int32 width, xtd::forms::size_type size_type, bool expanded, xtd::forms::content_alignment align) | |
| Initialises a new instance of horizontal control layout style class with specified width, size type, expanded and content alignment. More... | |
| horizontal_control_layout_style (bool expanded, xtd::forms::content_alignment align) | |
| Initialises a new instance of horizontal control layout style class with specified expanded and content alignment. More... | |
| horizontal_control_layout_style (float width, bool expanded, xtd::forms::content_alignment align) | |
| Initialises a new instance of horizontal control layout style class with specified expanded and content alignment. More... | |
| horizontal_control_layout_style (int32 width, bool expanded, xtd::forms::content_alignment align) | |
| Initialises a new instance of horizontal control layout style class with specified expanded and content alignment. More... | |
Properties | |
| std::optional< float > | width () const noexcept |
| Gets the width value for a control. More... | |
| void | width (float width) |
| Sets the width value for a control. More... | |
Methods | |
| bool | equals (const horizontal_control_layout_style &value) const noexcept override |
| xtd::ustring | to_string () const noexcept override |
| Returns a string that represent xtd::forms::control_layout_style. More... | |
Additional Inherited Members | |
Public Member Functions inherited from xtd::forms::control_layout_style | |
| xtd::forms::size_type | size_type () const noexcept |
| Gets a flag indicating how a control should be sized relative to its containing layout container. More... | |
| control_layout_style & | size_type (xtd::forms::size_type size_type) |
| Sets a flag indicating how a control should be sized relative to its containing layout container. More... | |
| bool | expanded () const noexcept |
| Gets a flag indicating if control is expanded to its containing layout container. More... | |
| control_layout_style & | expanded (bool expanded) |
| Sets a flag indicating if control is expanded to its containing layout container. More... | |
| xtd::forms::content_alignment | align () const noexcept |
| Gets a flag indicating how a control should be align to its containing layout container. More... | |
| control_layout_style & | align (xtd::forms::content_alignment align) |
| Sets a flag indicating how a control should be align to its containing layout container. More... | |
| bool | equals (const control_layout_style &value) const noexcept override |
Public Member Functions inherited from xtd::object | |
| object ()=default | |
| Create a new instance of the ultimate base class object. More... | |
| bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object. More... | |
| virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type. More... | |
| virtual type_object | get_type () const noexcept |
| Gets the type of the current instance. More... | |
| template<typename object_t > | |
| std::unique_ptr< object_t > | memberwise_clone () const noexcept |
| Creates a shallow copy of the current object. More... | |
Public Member Functions inherited from xtd::iequatable< control_layout_style > | |
| virtual bool | equals (const control_layout_style &) const noexcept=0 |
| Indicates whether the current object is equal to another object of the same type. More... | |
Public Member Functions inherited from xtd::iequatable< horizontal_control_layout_style > | |
| virtual bool | equals (const horizontal_control_layout_style &) const noexcept=0 |
| Indicates whether the current object is equal to another object of the same type. More... | |
Static Public Member Functions inherited from xtd::object | |
| static bool | equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are considered equal. More... | |
| static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are the same instance. More... | |
Protected Member Functions inherited from xtd::forms::control_layout_style | |
| control_layout_style () | |
| Initialises a new instance of control layout style class. More... | |
| control_layout_style (xtd::forms::size_type size_type) | |
| Initialises a new instance of control layout style class with specified size type. More... | |
| control_layout_style (bool expanded) | |
| Initialises a new instance of control layout style class with specified expanded. More... | |
| control_layout_style (xtd::forms::content_alignment align) | |
| Initialises a new instance of control layout style class with specified content alignment. More... | |
| control_layout_style (xtd::forms::size_type size_type, bool expanded) | |
| Initialises a new instance of control layout style class with specified size type and expanded. More... | |
| control_layout_style (xtd::forms::size_type size_type, xtd::forms::content_alignment align) | |
| Initialises a new instance of control layout style class with specified size type and content alignment. More... | |
| control_layout_style (xtd::forms::size_type size_type, bool expanded, xtd::forms::content_alignment align) | |
| Initialises a new instance of control layout style class with specified size type, expanded and content alignment. More... | |
| control_layout_style (bool expanded, xtd::forms::content_alignment align) | |
| Initialises a new instance of control layout style class with specified expanded and content alignment. More... | |
|
default |
Initialises a new instance of horizontal control layout style class.
|
explicit |
Initialises a new instance of horizontal control layout style class with specified width.
| width | The preferred width, in pixels or percentage, depending on the xtd::forms::control_layout_style::size_type property. |
|
explicit |
Initialises a new instance of horizontal control layout style class with specified width.
| width | The preferred width, in pixels or percentage, depending on the xtd::forms::control_layout_style::size_type property. |
|
explicit |
Initialises a new instance of horizontal control layout style class with specified size type.
| size_type | One of the xtd::forms::size_type values that specifies how layout container of user interface (UI) elements should be sized relative to their container. The default is xtd::forms::size_type::auto_size. |
| xtd::forms::horizontal_control_layout_style::horizontal_control_layout_style | ( | float | width, |
| xtd::forms::size_type | size_type | ||
| ) |
Initialises a new instance of horizontal control layout style class with specified width and size type.
| width | The preferred width, in pixels or percentage, depending on the xtd::forms::control_layout_style::size_type property. |
| size_type | One of the xtd::forms::size_type values that specifies how layout container of user interface (UI) elements should be sized relative to their container. The default is xtd::forms::size_type::auto_size. |
| xtd::forms::horizontal_control_layout_style::horizontal_control_layout_style | ( | int32 | width, |
| xtd::forms::size_type | size_type | ||
| ) |
Initialises a new instance of horizontal control layout style class with specified width and size type.
| width | The preferred width, in pixels or percentage, depending on the xtd::forms::control_layout_style::size_type property. |
| size_type | One of the xtd::forms::size_type values that specifies how layout container of user interface (UI) elements should be sized relative to their container. The default is xtd::forms::size_type::auto_size. |
|
explicit |
Initialises a new instance of horizontal control layout style class with specified expanded.
| expanded | true if control expanded; otherwise false. |
| xtd::forms::horizontal_control_layout_style::horizontal_control_layout_style | ( | float | width, |
| bool | expanded | ||
| ) |
Initialises a new instance of horizontal control layout style class with specified width and expanded.
| width | The preferred width, in pixels or percentage, depending on the xtd::forms::control_layout_style::size_type property. |
| expanded | true if control expanded; otherwise false. |
| xtd::forms::horizontal_control_layout_style::horizontal_control_layout_style | ( | int32 | width, |
| bool | expanded | ||
| ) |
Initialises a new instance of horizontal control layout style class with specified width and expanded.
| width | The preferred width, in pixels or percentage, depending on the xtd::forms::control_layout_style::size_type property. |
| expanded | true if control expanded; otherwise false. |
|
explicit |
Initialises a new instance of horizontal control layout style class with specified content alignment.
| align | One of the content_alignment values. The default is middle_center. |
| xtd::forms::horizontal_control_layout_style::horizontal_control_layout_style | ( | float | width, |
| xtd::forms::content_alignment | align | ||
| ) |
Initialises a new instance of horizontal control layout style class with specified width and content alignment.
| width | The preferred width, in pixels or percentage, depending on the xtd::forms::control_layout_style::size_type property. |
| align | One of the content_alignment values. The default is middle_center. |
| xtd::forms::horizontal_control_layout_style::horizontal_control_layout_style | ( | int32 | width, |
| xtd::forms::content_alignment | align | ||
| ) |
Initialises a new instance of horizontal control layout style class with specified width and content alignment.
| width | The preferred width, in pixels or percentage, depending on the xtd::forms::control_layout_style::size_type property. |
| align | One of the content_alignment values. The default is middle_center. |
| xtd::forms::horizontal_control_layout_style::horizontal_control_layout_style | ( | xtd::forms::size_type | size_type, |
| bool | expanded | ||
| ) |
Initialises a new instance of horizontal control layout style class with specified size type and expanded.
| size_type | One of the xtd::forms::size_type values that specifies how layout container of user interface (UI) elements should be sized relative to their container. The default is xtd::forms::size_type::auto_size. |
| expanded | true if control expanded; otherwise false. |
| xtd::forms::horizontal_control_layout_style::horizontal_control_layout_style | ( | float | width, |
| xtd::forms::size_type | size_type, | ||
| bool | expanded | ||
| ) |
Initialises a new instance of horizontal control layout style class with specified width, size type and expanded.
| width | The preferred width, in pixels or percentage, depending on the xtd::forms::control_layout_style::size_type property. |
| size_type | One of the xtd::forms::size_type values that specifies how layout container of user interface (UI) elements should be sized relative to their container. The default is xtd::forms::size_type::auto_size. |
| expanded | true if control expanded; otherwise false. |
| xtd::forms::horizontal_control_layout_style::horizontal_control_layout_style | ( | int32 | width, |
| xtd::forms::size_type | size_type, | ||
| bool | expanded | ||
| ) |
Initialises a new instance of horizontal control layout style class with specified width, size type and expanded.
| width | The preferred width, in pixels or percentage, depending on the xtd::forms::control_layout_style::size_type property. |
| size_type | One of the xtd::forms::size_type values that specifies how layout container of user interface (UI) elements should be sized relative to their container. The default is xtd::forms::size_type::auto_size. |
| expanded | true if control expanded; otherwise false. |
| xtd::forms::horizontal_control_layout_style::horizontal_control_layout_style | ( | xtd::forms::size_type | size_type, |
| xtd::forms::content_alignment | align | ||
| ) |
Initialises a new instance of horizontal control layout style class with specified size type and content alignment.
| size_type | One of the xtd::forms::size_type values that specifies how layout container of user interface (UI) elements should be sized relative to their container. The default is xtd::forms::size_type::auto_size. |
| align | One of the content_alignment values. The default is middle_center. |
| xtd::forms::horizontal_control_layout_style::horizontal_control_layout_style | ( | float | width, |
| xtd::forms::size_type | size_type, | ||
| xtd::forms::content_alignment | align | ||
| ) |
Initialises a new instance of horizontal control layout style class with specified width, size type and content alignment.
| width | The preferred width, in pixels or percentage, depending on the xtd::forms::control_layout_style::size_type property. |
| size_type | One of the xtd::forms::size_type values that specifies how layout container of user interface (UI) elements should be sized relative to their container. The default is xtd::forms::size_type::auto_size. |
| align | One of the content_alignment values. The default is middle_center. |
| xtd::forms::horizontal_control_layout_style::horizontal_control_layout_style | ( | int32 | width, |
| xtd::forms::size_type | size_type, | ||
| xtd::forms::content_alignment | align | ||
| ) |
Initialises a new instance of horizontal control layout style class with specified width, size type and content alignment.
| width | The preferred width, in pixels or percentage, depending on the xtd::forms::control_layout_style::size_type property. |
| size_type | One of the xtd::forms::size_type values that specifies how layout container of user interface (UI) elements should be sized relative to their container. The default is xtd::forms::size_type::auto_size. |
| align | One of the content_alignment values. The default is middle_center. |
| xtd::forms::horizontal_control_layout_style::horizontal_control_layout_style | ( | xtd::forms::size_type | size_type, |
| bool | expanded, | ||
| xtd::forms::content_alignment | align | ||
| ) |
Initialises a new instance of horizontal control layout style class with specified size type, expanded and content alignment.
| size_type | One of the xtd::forms::size_type values that specifies how layout container of user interface (UI) elements should be sized relative to their container. The default is xtd::forms::size_type::auto_size. |
| expanded | true if control expanded; otherwise false. |
| align | One of the content_alignment values. The default is middle_center. |
| xtd::forms::horizontal_control_layout_style::horizontal_control_layout_style | ( | float | width, |
| xtd::forms::size_type | size_type, | ||
| bool | expanded, | ||
| xtd::forms::content_alignment | align | ||
| ) |
Initialises a new instance of horizontal control layout style class with specified width, size type, expanded and content alignment.
| width | The preferred width, in pixels or percentage, depending on the xtd::forms::control_layout_style::size_type property. |
| size_type | One of the xtd::forms::size_type values that specifies how layout container of user interface (UI) elements should be sized relative to their container. The default is xtd::forms::size_type::auto_size. |
| expanded | true if control expanded; otherwise false. |
| align | One of the content_alignment values. The default is middle_center. |
| xtd::forms::horizontal_control_layout_style::horizontal_control_layout_style | ( | int32 | width, |
| xtd::forms::size_type | size_type, | ||
| bool | expanded, | ||
| xtd::forms::content_alignment | align | ||
| ) |
Initialises a new instance of horizontal control layout style class with specified width, size type, expanded and content alignment.
| width | The preferred width, in pixels or percentage, depending on the xtd::forms::control_layout_style::size_type property. |
| size_type | One of the xtd::forms::size_type values that specifies how layout container of user interface (UI) elements should be sized relative to their container. The default is xtd::forms::size_type::auto_size. |
| expanded | true if control expanded; otherwise false. |
| align | One of the content_alignment values. The default is middle_center. |
| xtd::forms::horizontal_control_layout_style::horizontal_control_layout_style | ( | bool | expanded, |
| xtd::forms::content_alignment | align | ||
| ) |
Initialises a new instance of horizontal control layout style class with specified expanded and content alignment.
| expanded | true if control expanded; otherwise false. |
| align | One of the content_alignment values. The default is middle_center. |
| xtd::forms::horizontal_control_layout_style::horizontal_control_layout_style | ( | float | width, |
| bool | expanded, | ||
| xtd::forms::content_alignment | align | ||
| ) |
Initialises a new instance of horizontal control layout style class with specified expanded and content alignment.
| width | The preferred width, in pixels or percentage, depending on the xtd::forms::control_layout_style::size_type property. |
| expanded | true if control expanded; otherwise false. |
| align | One of the content_alignment values. The default is middle_center. |
| xtd::forms::horizontal_control_layout_style::horizontal_control_layout_style | ( | int32 | width, |
| bool | expanded, | ||
| xtd::forms::content_alignment | align | ||
| ) |
Initialises a new instance of horizontal control layout style class with specified expanded and content alignment.
| width | The preferred width, in pixels or percentage, depending on the xtd::forms::control_layout_style::size_type property. |
| expanded | true if control expanded; otherwise false. |
| align | One of the content_alignment values. The default is middle_center. |
|
overridevirtualnoexcept |
Returns a string that represent xtd::forms::control_layout_style.
Reimplemented from xtd::forms::control_layout_style.
|
noexcept |
Gets the width value for a control.
| void xtd::forms::horizontal_control_layout_style::width | ( | float | width | ) |
Sets the width value for a control.
| width | The preferred width, in pixels or percentage, depending on the xtd::forms::control_layout_style::size_type property. |