Implements the basic functionality that represents the appearance and behavior of a control layout.
Protected Constructors | |
| control_layout_style () | |
| Initialises a new instance of control layout style class. | |
| control_layout_style (xtd::forms::size_type size_typesize_type) | |
| Initialises a new instance of control layout style class with specified size type. | |
| control_layout_style (bool expanded) | |
| Initialises a new instance of control layout style class with specified expanded. | |
| control_layout_style (xtd::forms::content_alignment align) | |
| Initialises a new instance of control layout style class with specified content alignment. | |
| control_layout_style (xtd::forms::size_type size_typesize_type, bool expanded) | |
| Initialises a new instance of control layout style class with specified size type and expanded. | |
| control_layout_style (xtd::forms::size_type size_typesize_type, xtd::forms::content_alignment align) | |
| Initialises a new instance of control layout style class with specified size type and content alignment. | |
| control_layout_style (xtd::forms::size_type size_typesize_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. | |
| 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. | |
Public Properties | |
| auto | size_type () const noexcept -> xtd::forms::size_type |
| Gets a flag indicating how a control should be sized relative to its containing layout container. | |
| auto | size_type (xtd::forms::size_type size_typesize_type) -> control_layout_style & |
| Sets a flag indicating how a control should be sized relative to its containing layout container. | |
| auto | expanded () const noexcept -> bool |
| Gets a flag indicating if control is expanded to its containing layout container. | |
| auto | expanded (bool expanded) -> control_layout_style & |
| Sets a flag indicating if control is expanded to its containing layout container. | |
| auto | align () const noexcept -> xtd::forms::content_alignment |
| Gets a flag indicating how a control should be align to its containing layout container. | |
| auto | align (xtd::forms::content_alignment align) -> control_layout_style & |
| Sets a flag indicating how a control should be align to its containing layout container. | |
Public Methods | |
| auto | equals (const xtd::object &obj) const noexcept -> bool override |
| Determines whether the specified object is equal to the current object. | |
| auto | equals (const control_layout_style &other) const noexcept -> bool override |
| Determines whether the specified object is equal to the current object. | |
| auto | get_hash_code () const noexcept -> xtd::usize override |
| Serves as a hash function for a particular type. | |
| auto | to_string () const noexcept -> xtd::string override |
| Returns a string that represent xtd::forms::control_layout_style. | |
Additional Inherited Members | |
| object ()=default | |
| Create a new instance of the ultimate base class object. | |
| virtual auto | get_type () const noexcept -> type_object |
| Gets the type of the current instance. | |
| template<typename object_t> | |
| auto | memberwise_clone () const -> xtd::unique_ptr_object< object_t > |
| Creates a shallow copy of the current object. | |
| virtual auto | equals (const control_layout_style &) const noexcept -> bool=0 |
| Indicates whether the current object is equal to another object of the same type. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are considered equal. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are the same instance. | |
|
protected |
Initialises a new instance of control layout style class.
|
explicitprotected |
Initialises a new instance of 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. |
|
explicitprotected |
Initialises a new instance of control layout style class with specified expanded.
| expanded | true if control expanded; otherwise false. |
|
explicitprotected |
Initialises a new instance of control layout style class with specified content alignment.
| expanded | true if control expanded; otherwise false. |
| align | One of the content_alignment values.. |
|
protected |
Initialises a new instance of 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. |
| expanded | true if control expanded; otherwise false. |
|
protected |
Initialises a new instance of 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. |
| align | One of the content_alignment values. |
|
protected |
Initialises a new instance of 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. |
| expanded | true if control expanded; otherwise false. |
| align | One of the content_alignment values. |
|
protected |
Initialises a new instance of control layout style class with specified expanded and content alignment.
| expanded | true if control expanded; otherwise false. |
| align | One of the content_alignment values.. |
|
nodiscardnoexcept |
Gets a flag indicating how a control should be sized relative to its containing layout container.
| auto xtd::forms::control_layout_style::size_type | ( | xtd::forms::size_type | size_type | ) | -> control_layout_style & |
Sets a flag indicating how a control should be sized relative to its containing layout container.
| 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::absolute. |
|
nodiscardnoexcept |
Gets a flag indicating if control is expanded to its containing layout container.
| auto xtd::forms::control_layout_style::expanded | ( | bool | expanded | ) | -> control_layout_style & |
Sets a flag indicating if control is expanded to its containing layout container.
| expanded | true if control expanded; otherwise false. The default is false. |
|
nodiscardnoexcept |
Gets a flag indicating how a control should be align to its containing layout container.
| auto xtd::forms::control_layout_style::align | ( | xtd::forms::content_alignment | align | ) | -> control_layout_style & |
Sets a flag indicating how a control should be align to its containing layout container.
| align | One of the content_alignment values. The default is top_left. |
|
nodiscardoverridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
| obj | The object to compare with the current object. |
Reimplemented from xtd::object.
Reimplemented in xtd::forms::horizontal_control_layout_style, and xtd::forms::vertical_control_layout_style.
|
nodiscardoverridenoexcept |
Determines whether the specified object is equal to the current object.
| other | The object to compare with the current object. |
|
nodiscardoverridevirtualnoexcept |
Serves as a hash function for a particular type.
Reimplemented from xtd::object.
Reimplemented in xtd::forms::horizontal_control_layout_style, and xtd::forms::vertical_control_layout_style.
|
nodiscardoverridevirtualnoexcept |
Returns a string that represent xtd::forms::control_layout_style.
Reimplemented from xtd::object.
Reimplemented in xtd::forms::horizontal_control_layout_style, and xtd::forms::vertical_control_layout_style.