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

 

Initializes a new instance of the StatusBarDrawItemEventArgs class with a specified 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,
	Color foreColor,
	Color backColor
)

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.

foreColor
Type: System.Drawing.Color

One of the System.Drawing.Color values that represents the foreground color of the panel to draw.

backColor
Type: System.Drawing.Color

One of the System.Drawing.Color values that represents the background color of the panel to draw.

.NET Framework
Available since 1.1
Return to top
Show: