System.Windows.Forms.StatusBarPanelStyle Enumeration

Specifies whether a System.Windows.Forms.StatusBarPanel object on a System.Windows.Forms.StatusBar control is owner-drawn or system-drawn.

Syntax

public enum StatusBarPanelStyle

Remarks

Use the members of this enumeration to set the value of the StatusBarPanel.Style property of the System.Windows.Forms.StatusBarPanel class. The Style property determines the way in which the System.Windows.Forms.StatusBarPanel will be displayed. System.Windows.Forms.StatusBarPanel objects can display simple text or be owner-drawn. Owner-drawn System.Windows.Forms.StatusBarPanel objects support displaying images or a different font from the rest of the System.Windows.Forms.StatusBarPanel objects on a System.Windows.Forms.StatusBar control, while system-drawn System.Windows.Forms.StatusBarPanel objects are used to display only text (or text and an icon if an icon is specified in the StatusBarPanel.Icon property of the System.Windows.Forms.StatusBarPanel). To perform the owner-draw operations on an owner-drawn System.Windows.Forms.StatusBarPanel, use the StatusBar.DrawItem event of the System.Windows.Forms.StatusBar control.

Members

Member NameDescription
OwnerDraw

The System.Windows.Forms.StatusBarPanel is drawn by the owner.

Text

The System.Windows.Forms.StatusBarPanel displays text in the standard font.

Requirements

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