xtd
0.2.0
Loading...
Searching...
No Matches
◆
auto_size()
[1/2]
xtd::forms::status_bar_panel_auto_size
xtd::forms::status_bar_panel::auto_size
(
)
const
noexcept
Gets a value indicating whether the status bar panel is automatically resized.
Returns
One of the
xtd::forms::status_bar_panel_auto_size
values. The default is
xtd::forms::status_bar_panel_auto_size::none
.
Remarks
xtd::forms::status_bar_panel
objects set to
xtd::forms::status_bar_panel_auto_size::contents
have precedence over those panels set to the
xtd::forms::status_bar_panel_auto_size::spring
value. For example, a
xtd::forms::status_bar_panel
that has its
xtd::forms::status_bar_panel::auto_size
property set to
xtd::forms::status_bar_panel_auto_size::spring
is shortened if a
xtd::forms::status_bar_panel
with the
xtd::forms::status_bar_panel::auto_size
property set to
xtd::forms::status_bar_panel_auto_size::contents
requires that space.
You can use
xtd::forms::status_bar_panel::auto_size
to ensure that the contents of a
xtd::forms::status_bar_panel
are properly displayed in a
xtd::forms::status_bar
control that contains more than one panel. For example, you might want a panel that contains text to adjust automatically to the amount of text it is displaying (
xtd::forms::status_bar_panel_auto_size::contents
), while another panel on the
xtd::forms::status_bar
that displays an owner-drawn progress bar would need to be a fixed size (
xtd::forms::status_bar_panel_auto_size::none
).
xtd
forms
status_bar_panel
Generated on Sat Sep 14 2024 21:25:28 for xtd by
Gammasoft
. All rights reserved.