StatusBarPanelStyle Enumeration
Specifies whether a StatusBarPanel object on a StatusBar control is owner-drawn or system-drawn.
[Visual Basic] <Serializable> Public Enum StatusBarPanelStyle [C#] [Serializable] public enum StatusBarPanelStyle [C++] [Serializable] __value public enum StatusBarPanelStyle [JScript] public Serializable enum StatusBarPanelStyle
Remarks
Use the members of this enumeration to set the value of the Style property of the StatusBarPanel class. The Style property determines the way in which the StatusBarPanel will be displayed. StatusBarPanel objects can display simple text or be owner-drawn. Owner-drawn StatusBarPanel objects support displaying images or a different font from the rest of the StatusBarPanel objects on a StatusBar control, while system-drawn StatusBarPanel objects are used to display only text (or text and an icon if an icon is specified in the Icon property of the StatusBarPanel). To perform the owner-draw operations on an owner-drawn StatusBarPanel, use the DrawItem event of the StatusBar control.
Members
| Member name | Description |
|---|---|
| OwnerDraw | The StatusBarPanel is drawn by the owner. |
| Text | The StatusBarPanel displays text in the standard font. |
Requirements
Namespace: System.Windows.Forms
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
See Also
System.Windows.Forms Namespace | StatusBarPanel | Style | StatusBar | DrawItem