Represents a xtd::forms::status_bar panel.
Public Constructors | |
status_bar_panel () | |
Initialises a new instance of xtd::forms::status_bar_panel class. | |
Public Properties | |
xtd::forms::horizontal_alignment | alignment () const noexcept |
Gets the alignment of text and icons within the status bar panel. | |
status_bar_panel & | alignment (xtd::forms::horizontal_alignment value) |
Sets the alignment of text and icons within the status bar panel. | |
xtd::forms::status_bar_panel_auto_size | auto_size () const noexcept |
Gets a value indicating whether the status bar panel is automatically resized. | |
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. | |
xtd::forms::status_bar_panel_border_style | border_style () const noexcept |
Gets the border style of the status bar panel. | |
status_bar_panel & | border_style (xtd::forms::status_bar_panel_border_style value) |
Sets the border style of the status bar panel. | |
std::optional< control_ref > | control () const noexcept |
Gets the control to be displayed in the control status bar panel. | |
status_bar_panel & | control (const xtd::forms::control &value) |
Sets the control to be displayed in the control status bar panel. | |
status_bar_panel & | control (std::nullptr_t value) |
Resets the control to be displayed in the control status bar panel. | |
const xtd::drawing::image & | image () const noexcept |
Gets the image to display within the status bar panel. | |
status_bar_panel & | image (const xtd::drawing::image &value) |
Sets the image to display within the status bar panel. | |
int32 | min_width () const noexcept |
Gets the minimum allowed width of the status bar panel within the xtd::forms::status_bar control. | |
status_bar_panel & | min_width (int32 value) |
Sets the minimum allowed width of the status bar panel within the xtd::forms::status_bar control. | |
const xtd::string & | name () const noexcept |
Gets the name of the xtd::forms::status_bar_panel. | |
status_bar_panel & | name (const xtd::string &value) |
Sets the name of the xtd::forms::status_bar_panel. | |
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. | |
xtd::forms::status_bar_panel_style | style () const noexcept |
Gets the style of the status bar panel. | |
status_bar_panel & | style (xtd::forms::status_bar_panel_style value) |
Sets the style of the status bar panel. | |
std::any | tag () const noexcept |
Gets an object that contains data about the xtd::forms::status_bar_panel. | |
status_bar_panel & | tag (std::any value) |
Sets an object that contains data about the xtd::forms::status_bar_panel. | |
const xtd::string & | text () const noexcept |
Gets the text of the status bar panel. | |
status_bar_panel & | text (const xtd::string &value) |
Sets the text of the status bar panel. | |
const xtd::string & | tool_tip_text () const noexcept |
Gets ToolTip text associated with the status bar panel. | |
status_bar_panel & | tool_tip_text (const xtd::string &value) |
Sets ToolTip text associated with the status bar panel. | |
int32 | width () const noexcept |
Gets the width of the status bar panel within the xtd::forms::status_bar control. | |
status_bar_panel & | width (int32 value) |
Sets the width of the status bar panel within the xtd::forms::status_bar control. | |
Public Methods | |
void | begin_init () |
Begins the initialization of a xtd::forms::status_bar_panel. | |
bool | equals (const status_bar_panel &other) const noexcept override |
void | end_init () |
Ends the initialization of a xtd::forms::status_bar_panel. | |
xtd::string | to_string () const noexcept override |
Returns a string that represents the xtd::forms::status_bar_panel control. | |
virtual bool | equals (const object &obj) const noexcept |
Determines whether the specified object is equal to the current object. | |
template<typename object_a_t , typename object_b_t > | |
static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
Determines whether the specified object instances are considered equal. | |
Public Static Methods | |
static status_bar_panel | create_control (const xtd::string &text, const xtd::forms::control &control) |
A factory to create a control status bar panel with specified text and control. | |
static status_bar_panel | create_control (const xtd::forms::control &control) |
A factory to create a control status bar panel with specified control. | |
static status_bar_panel | create_panel (const xtd::string &text) |
A factory to create a status bar panel with specified text. | |
static status_bar_panel | create_panel (const xtd::drawing::image &image) |
A factory to create a status bar panel with specified image index. | |
static status_bar_panel | create_panel (const xtd::string &text, const xtd::drawing::image &image) |
A factory to create a status bar panel with specified text and image index. | |
Protected Methods | |
xtd::uptr< xtd::object > | clone () const override |
Creates a new object that is a copy of the current instance. | |
Additional Inherited Members | |
Public Member Functions inherited from xtd::object | |
object ()=default | |
Create a new instance of the ultimate base class object. | |
virtual size_t | get_hash_code () const noexcept |
Serves as a hash function for a particular type. | |
virtual type_object | get_type () const noexcept |
Gets the type of the current instance. | |
template<typename object_t > | |
xtd::uptr< object_t > | memberwise_clone () const |
Creates a shallow copy of the current object. | |
Public Member Functions inherited from xtd::iclonable | |
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. | |
Static Public Member Functions inherited from xtd::object | |
template<typename object_a_t , typename object_b_t > | |
static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
Determines whether the specified object instances are considered equal. | |
template<typename object_a_t , typename object_b_t > | |
static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
Determines whether the specified object instances are the same instance. | |
Protected Member Functions inherited from xtd::forms::component | |
component () | |
Initialises a new instance of the component class. | |
virtual bool | can_raise_events () const noexcept |
Gets a value indicating whether the component can raise an event. | |
bool | design_mode () const noexcept |
Gets a value that indicates whether the component is currently in design mode. | |
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. |
|
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. |
|
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::string & | 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::string & | value | ) |
Sets the text of the status bar panel.
value | The text displayed in the panel. The default is an empty string (""). |
|
noexcept |
Gets ToolTip text associated with the status bar panel.
status_bar_panel & xtd::forms::status_bar_panel::tool_tip_text | ( | const xtd::string & | 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. |
void xtd::forms::status_bar_panel::begin_init | ( | ) |
Begins the initialization of a xtd::forms::status_bar_panel.
void xtd::forms::status_bar_panel::end_init | ( | ) |
Ends the initialization of a xtd::forms::status_bar_panel.
|
overridevirtualnoexcept |
Returns a string that represents the xtd::forms::status_bar_panel control.
Reimplemented from xtd::object.
|
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. |
|
overrideprotectedvirtual |
Creates a new object that is a copy of the current instance.
Implements xtd::iclonable.
|
virtualnoexcept |
Determines whether the specified object is equal to the current object.
obj | The object to compare with the current object. |
Reimplemented from xtd::object.
|
inlinestaticnoexcept |
Determines whether the specified object instances are considered equal.
object_a | The first object to compare. |
object_b | The second object to compare. |