Represents a xtd::forms::status_bar panel.
Constructors | |
| status_bar_panel () | |
| Initialises a new instance of xtd::forms::status_bar_panel class. More... | |
Properties | |
| xtd::forms::horizontal_alignment | alignment () const noexcept |
| Gets the alignment of text and icons within the status bar panel. More... | |
| status_bar_panel & | alignment (xtd::forms::horizontal_alignment value) |
| Sets the alignment of text and icons within the status bar panel. More... | |
| xtd::forms::status_bar_panel_auto_size | auto_size () const noexcept |
| Gets a value indicating whether the status bar panel is automatically resized. More... | |
| status_bar_panel & | auto_size (xtd::forms::status_bar_panel_auto_size value) |
| Sets a value indicating whether the status bar panel is automatically resized. More... | |
| xtd::forms::status_bar_panel_border_style | border_style () const noexcept |
| Gets the border style of the status bar panel. More... | |
| status_bar_panel & | border_style (xtd::forms::status_bar_panel_border_style value) |
| Sets the border style of the status bar panel. More... | |
| std::optional< control_ref > | control () const noexcept |
| Gets the control to be displayed in the control status bar panel. More... | |
| status_bar_panel & | control (const xtd::forms::control &value) |
| Sets the control to be displayed in the control status bar panel. More... | |
| status_bar_panel & | control (std::nullptr_t value) |
| Resets the control to be displayed in the control status bar panel. More... | |
| const xtd::drawing::image & | image () const noexcept |
| Gets the image to display within the status bar panel. More... | |
| status_bar_panel & | image (const xtd::drawing::image &value) |
| Sets the image to display within the status bar panel. More... | |
| int32 | min_width () const noexcept |
| Gets the minimum allowed width of the status bar panel within the xtd::forms::status_bar control. More... | |
| status_bar_panel & | min_width (int32 value) |
| Sets the minimum allowed width of the status bar panel within the xtd::forms::status_bar control. More... | |
| const xtd::ustring & | name () const noexcept |
| Gets the name of the xtd::forms::status_bar_panel. More... | |
| status_bar_panel & | name (const xtd::ustring &value) |
| Sets the name of the xtd::forms::status_bar_panel. More... | |
| std::optional< std::reference_wrapper< xtd::forms::status_bar > > | parent () const noexcept |
| Gets the xtd::forms::status_bar control that the status bar panel is assigned to. More... | |
| xtd::forms::status_bar_panel_style | style () const noexcept |
| Gets the style of the status bar panel. More... | |
| status_bar_panel & | style (xtd::forms::status_bar_panel_style value) |
| Sets the style of the status bar panel. More... | |
| std::any | tag () const noexcept |
| Gets an object that contains data about the xtd::forms::status_bar_panel. More... | |
| status_bar_panel & | tag (std::any value) |
| Sets an object that contains data about the xtd::forms::status_bar_panel. More... | |
| const xtd::ustring & | text () const noexcept |
| Gets the text of the status bar panel. More... | |
| status_bar_panel & | text (const xtd::ustring &value) |
| Sets the text of the status bar panel. More... | |
| const xtd::ustring & | tool_tip_text () const noexcept |
| Gets ToolTip text associated with the status bar panel. More... | |
| status_bar_panel & | tool_tip_text (const xtd::ustring &value) |
| Sets ToolTip text associated with the status bar panel. More... | |
| int32 | width () const noexcept |
| Gets the width of the status bar panel within the xtd::forms::status_bar control. More... | |
| status_bar_panel & | width (int32 value) |
| Sets the width of the status bar panel within the xtd::forms::status_bar control. More... | |
Methods | |
| void | begin_init () |
| Begins the initialization of a xtd::forms::status_bar_panel. More... | |
| bool | equals (const status_bar_panel &other) const noexcept override |
| void | end_init () |
| Ends the initialization of a xtd::forms::status_bar_panel. More... | |
| xtd::ustring | to_string () const noexcept override |
| Returns a string that represents the xtd::forms::status_bar_panel control. More... | |
| static status_bar_panel | create_control (const xtd::ustring &text, const xtd::forms::control &control) |
| A factory to create a control status bar panel with specified text and control. More... | |
| static status_bar_panel | create_control (const xtd::forms::control &control) |
| A factory to create a control status bar panel with specified control. More... | |
| static status_bar_panel | create_panel (const xtd::ustring &text) |
| A factory to create a status bar panel with specified text. More... | |
| static status_bar_panel | create_panel (const xtd::drawing::image &image) |
| A factory to create a status bar panel with specified image index. More... | |
| static status_bar_panel | create_panel (const xtd::ustring &text, const xtd::drawing::image &image) |
| A factory to create a status bar panel with specified text and image index. More... | |
Additional Inherited Members | |
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< status_bar_panel > | |
| virtual bool | equals (const status_bar_panel &) 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::component | |
| component () | |
| Initialises a new instance of the component class. More... | |
| virtual bool | can_raise_events () const noexcept |
| Gets a value indicating whether the component can raise an event. More... | |
| bool | design_mode () const noexcept |
| Gets a value that indicates whether the component is currently in design mode. More... | |
| xtd::forms::status_bar_panel::status_bar_panel | ( | ) |
Initialises a new instance of xtd::forms::status_bar_panel class.
|
noexcept |
Gets the alignment of text and icons within the status bar panel.
| status_bar_panel& xtd::forms::status_bar_panel::alignment | ( | xtd::forms::horizontal_alignment | value | ) |
Sets the alignment of text and icons within the status bar panel.
| value | One of the xtd::forms::horizontal_alignment values. The default is xtd::forms::horizontal_alignment::left. |
|
noexcept |
Gets a value indicating whether the status bar panel is automatically resized.
| status_bar_panel& xtd::forms::status_bar_panel::auto_size | ( | xtd::forms::status_bar_panel_auto_size | value | ) |
Sets a value indicating whether the status bar panel is automatically resized.
| value | One of the xtd::forms::status_bar_panel_auto_size values. The default is xtd::forms::status_bar_panel_auto_size::none. |
| void xtd::forms::status_bar_panel::begin_init | ( | ) |
Begins the initialization of a xtd::forms::status_bar_panel.
|
noexcept |
Gets the border style of the status bar panel.
| status_bar_panel& xtd::forms::status_bar_panel::border_style | ( | xtd::forms::status_bar_panel_border_style | value | ) |
Sets the border style of the status bar panel.
| value | One of the xtd::forms::status_bar_panel_border_style values. The default is xtd::forms::status_bar_panel_border_style::sunken. |
|
noexcept |
Gets the control to be displayed in the control status bar panel.
| status_bar_panel& xtd::forms::status_bar_panel::control | ( | const xtd::forms::control & | value | ) |
Sets the control to be displayed in the control status bar panel.
| value | A xtd::forms::control to be displayed in the control status bar panel. The default is std::nullopt. |
| status_bar_panel& xtd::forms::status_bar_panel::control | ( | std::nullptr_t | value | ) |
Resets the control to be displayed in the control status bar panel.
| value | nullptr. |
|
static |
A factory to create a control status bar panel with specified text and control.
| text | The text displayed on the status bar panel. |
| control | A xtd::forms::control to be displayed in the control status bar panel. |
|
static |
A factory to create a control status bar panel with specified control.
| control | A xtd::forms::control to be displayed in the control status bar panel. |
|
static |
A factory to create a status bar panel with specified text.
| text | The text displayed on the status bar panel. |
|
static |
A factory to create a status bar panel with specified image index.
| image | The xtd::drawing::image assigned to the status bar panel. |
|
static |
A factory to create a status bar panel with specified text and image index.
| text | The text displayed on the status bar panel. |
| image | The xtd::drawing::image assigned to the status bar panel. |
| void xtd::forms::status_bar_panel::end_init | ( | ) |
Ends the initialization of a xtd::forms::status_bar_panel.
|
noexcept |
Gets the image to display within the status bar panel.
| status_bar_panel& xtd::forms::status_bar_panel::image | ( | const xtd::drawing::image & | value | ) |
Sets the image to display within the status bar panel.
| value | An xtd::drawing::image that represents the image to display in the panel. |
|
noexcept |
Gets the minimum allowed width of the status bar panel within the xtd::forms::status_bar control.
| status_bar_panel& xtd::forms::status_bar_panel::min_width | ( | int32 | value | ) |
Sets the minimum allowed width of the status bar panel within the xtd::forms::status_bar control.
| value | The minimum width, in pixels, of the xtd::forms::status_bar_panel |
| xtd::argument_exception | A value less than 0 is assigned to the property. |
|
noexcept |
Gets the name of the xtd::forms::status_bar_panel.
| status_bar_panel& xtd::forms::status_bar_panel::name | ( | const xtd::ustring & | value | ) |
Sets the name of the xtd::forms::status_bar_panel.
| value | The name of the xtd::forms::status_bar_panel. |
|
noexcept |
Gets the xtd::forms::status_bar control that the status bar panel is assigned to.
|
noexcept |
Gets the style of the status bar panel.
| status_bar_panel& xtd::forms::status_bar_panel::style | ( | xtd::forms::status_bar_panel_style | value | ) |
Sets the style of the status bar panel.
| value | One of the xtd::forms::status_bar_panel_style values. The default is xtd::forms::status_bar_panel_style::text. |
|
noexcept |
Gets an object that contains data about the xtd::forms::status_bar_panel.
| status_bar_panel& xtd::forms::status_bar_panel::tag | ( | std::any | value | ) |
Sets an object that contains data about the xtd::forms::status_bar_panel.
| value | An std::any that contains data about the xtd::forms::status_bar_panel. The default is empty. |
|
noexcept |
Gets the text of the status bar panel.
| status_bar_panel& xtd::forms::status_bar_panel::text | ( | const xtd::ustring & | value | ) |
Sets the text of the status bar panel.
| value | The text displayed in the panel. The default is an empty string (""). |
|
overridevirtualnoexcept |
Returns a string that represents the xtd::forms::status_bar_panel control.
Reimplemented from xtd::object.
|
noexcept |
Gets ToolTip text associated with the status bar panel.
| status_bar_panel& xtd::forms::status_bar_panel::tool_tip_text | ( | const xtd::ustring & | value | ) |
Sets ToolTip text associated with the status bar panel.
| value | The ToolTip text for the panel. |
|
noexcept |
Gets the width of the status bar panel within the xtd::forms::status_bar control.
| status_bar_panel& xtd::forms::status_bar_panel::width | ( | int32 | value | ) |
Sets the width of the status bar panel within the xtd::forms::status_bar control.
| value | The width, in pixels, of the xtd::forms::status_bar_panel. |