System.Windows.Forms.StatusBarPanel.Style Property

Gets or sets the style of the status bar panel.

Syntax

[System.ComponentModel.DefaultValue(System.Windows.Forms.StatusBarPanelStyle.Text)]
public StatusBarPanelStyle Style { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

You can use this property to indicate whether a System.Windows.Forms.StatusBarPanel displays text or whether the panel is managed as an owner-drawn System.Windows.Forms.StatusBarPanel. To determine when a System.Windows.Forms.StatusBarPanel needs to be drawn, create an event handler for the StatusBar.DrawItem event of the System.Windows.Forms.StatusBar control. The System.Windows.Forms.StatusBarDrawItemEventArgs passed as a parameter to an event handler of the StatusBar.DrawItem event enables you to determine which panel needs to be drawn. The System.Windows.Forms.StatusBarDrawItemEventArgs also provides a System.Drawing.Graphics object you can use to perform drawing tasks on the System.Windows.Forms.StatusBarPanel.

Requirements

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