This topic has not yet been rated - Rate this topic

StatusBarDrawItemEventArgs Constructor (Graphics, Font, Rectangle, Int32, DrawItemState, StatusBarPanel)

Initializes a new instance of the StatusBarDrawItemEventArgs class without specifying a background and foreground color for the StatusBarPanel.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)
public StatusBarDrawItemEventArgs(
	Graphics g,
	Font font,
	Rectangle r,
	int itemId,
	DrawItemState itemState,
	StatusBarPanel panel
)

Parameters

g
Type: System.Drawing.Graphics

The Graphics to use to draw the StatusBarPanel.

font
Type: System.Drawing.Font

The Font used to render text.

r
Type: System.Drawing.Rectangle

The Rectangle that represents the client area of the StatusBarPanel.

itemId
Type: System.Int32

The zero-based index of the panel in the StatusBar.StatusBarPanelCollection of the StatusBar control.

itemState
Type: System.Windows.Forms.DrawItemState

One of the DrawItemState values that represents state information about the StatusBarPanel.

panel
Type: System.Windows.Forms.StatusBarPanel

A StatusBarPanel that represents the panel to draw.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.