xtd 0.2.0
Loading...
Searching...
No Matches

◆ style() [2/2]

status_bar_panel & xtd::forms::status_bar_panel::style ( xtd::forms::status_bar_panel_style  value)

Sets the style of the status bar panel.

Parameters
valueOne of the xtd::forms::status_bar_panel_style values. The default is xtd::forms::status_bar_panel_style::text.
Returns
This current instance.
Remarks
You can use this property to indicate whether a xtd::forms::status_bar_panel displays text or whether the panel is managed as an owner-drawn xtd::forms::status_bar_panel. To determine when a xtd::forms::status_bar_panel needs to be drawn, create an event handler for the xtd::forms::status_bar::draw_item event of the xtd::forms::status_bar control. The xtd::forms::status_bar_draw_item_event_args passed as a parameter to an event handler of the xtd::forms::status_bar::draw_item event enables you to determine which panel needs to be drawn. The xtd::forms::status_bar_draw_item_event_args also provides a xtd::drawing::graphics object you can use to perform drawing tasks on the xtd::forms::status_bar_panel.