System.Windows.Forms.StatusBarPanel.Alignment Property

Gets or sets the alignment of text and icons within the status bar panel.

Syntax

[System.ComponentModel.Localizable(true)]
[System.ComponentModel.DefaultValue(System.Windows.Forms.HorizontalAlignment.Left)]
public HorizontalAlignment Alignment { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

You can use this property to horizontally align the text and/or icon assigned to the StatusBarPanel.Icon property within the borders of the panel. Text and icons can be aligned to the left, right, or center of the System.Windows.Forms.StatusBarPanel. There is no way to independently position an icon within the System.Windows.Forms.StatusBarPanel. For example, you cannot position an icon to the left side of the System.Windows.Forms.StatusBarPanel while aligning the text on the right side. The icon is always positioned to the left side of the text regardless of how the text is aligned.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0