xtd 0.2.0
vertical_control_layout_style.h
Go to the documentation of this file.
1 #pragma once
5 #include "control_layout_style.h"
6 #include <xtd/iequatable>
7 #include <xtd/optional>
8 
10 namespace xtd {
12  namespace forms {
21  class vertical_control_layout_style : public control_layout_style, public xtd::iequatable<vertical_control_layout_style> {
22  public:
24 
30  explicit vertical_control_layout_style(float height);
33  explicit vertical_control_layout_style(int32 height);
51  vertical_control_layout_style(float height, bool expanded);
55  vertical_control_layout_style(int32 height, bool expanded);
70  vertical_control_layout_style(xtd::forms::size_type size_type, bool expanded);
75  vertical_control_layout_style(float height, xtd::forms::size_type size_type, bool expanded);
80  vertical_control_layout_style(int32 height, xtd::forms::size_type size_type, bool expanded);
105  vertical_control_layout_style(float height, xtd::forms::size_type size_type, bool expanded, xtd::forms::content_alignment align);
120  vertical_control_layout_style(float height, bool expanded, xtd::forms::content_alignment align);
127 
129 
133  std::optional<float> height() const noexcept;
136  void height(float height);
138 
140 
142  using control_layout_style::equals;
143  bool equals(const vertical_control_layout_style& value) const noexcept override;
144 
147  xtd::ustring to_string() const noexcept override;
149 
150  private:
151  std::optional<float> height_;
152  };
153  }
154 }
Implements the basic functionality that represents the appearance and behavior of a control layout...
Definition: control_layout_style.h:23
Implements the basic functionality that represents the appearance and behavior of a control layout...
Definition: vertical_control_layout_style.h:21
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
size_type
Specifies how rows or columns of user interface (UI) elements should be sized relative to their conta...
Definition: size_type.h:20
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
std::optional< float > height() const noexcept
Gets the height value for a control.
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition: iequatable.h:18
content_alignment
Specifies alignment of content on the drawing surface.
Definition: content_alignment.h:19
vertical_control_layout_style()=default
Initialises a new instance of vertical control layout style class.
xtd::ustring to_string() const noexcept override
Returns a string that represent xtd::forms::control_layout_style.
xtd::forms::content_alignment align() const noexcept
Gets a flag indicating how a control should be align to its containing layout container.
int_least32_t int32
Represents a 32-bit signed integer.
Definition: types.h:129
bool expanded() const noexcept
Gets a flag indicating if control is expanded to its containing layout container. ...
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Contains xtd::forms::control_layout_style class.