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

◆ alignment() [2/2]

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.

Parameters
valueOne of the xtd::forms::horizontal_alignment values. The default is xtd::forms::horizontal_alignment::left.
Returns
This current instance.
Remarks
You can use this property to horizontally align the text and/or image assigned to the xtd::forms::status_bar_panel::image property within the borders of the panel. Text and im ge can be aligned to the left, right, or center of the xtd::forms::status_bar_panel. There is no way to independently position animage within the xtd::forms::status_bar_panel. For example, you cannot position an icon to the left side of the xtd::forms::status_bar_panel while aligning the text on the right side. The image is always positioned to the left side of the text regardless of how the text is aligned.