แก้ไข

แชร์ผ่าน


StatusBarDrawItemEventArgs Constructors

Definition

Initializes a new instance of the StatusBarDrawItemEventArgs class.

Overloads

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

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

StatusBarDrawItemEventArgs(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.

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

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

public:
 StatusBarDrawItemEventArgs(System::Drawing::Graphics ^ g, System::Drawing::Font ^ font, System::Drawing::Rectangle r, int itemId, System::Windows::Forms::DrawItemState itemState, System::Windows::Forms::StatusBarPanel ^ panel);
public StatusBarDrawItemEventArgs (System.Drawing.Graphics g, System.Drawing.Font font, System.Drawing.Rectangle r, int itemId, System.Windows.Forms.DrawItemState itemState, System.Windows.Forms.StatusBarPanel panel);
new System.Windows.Forms.StatusBarDrawItemEventArgs : System.Drawing.Graphics * System.Drawing.Font * System.Drawing.Rectangle * int * System.Windows.Forms.DrawItemState * System.Windows.Forms.StatusBarPanel -> System.Windows.Forms.StatusBarDrawItemEventArgs
Public Sub New (g As Graphics, font As Font, r As Rectangle, itemId As Integer, itemState As DrawItemState, panel As StatusBarPanel)

Parameters

g
Graphics

The Graphics to use to draw the StatusBarPanel.

font
Font

The Font used to render text.

r
Rectangle

The Rectangle that represents the client area of the StatusBarPanel.

itemId
Int32

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

itemState
DrawItemState

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

panel
StatusBarPanel

A StatusBarPanel that represents the panel to draw.

See also

Applies to

StatusBarDrawItemEventArgs(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.

public:
 StatusBarDrawItemEventArgs(System::Drawing::Graphics ^ g, System::Drawing::Font ^ font, System::Drawing::Rectangle r, int itemId, System::Windows::Forms::DrawItemState itemState, System::Windows::Forms::StatusBarPanel ^ panel, System::Drawing::Color foreColor, System::Drawing::Color backColor);
public StatusBarDrawItemEventArgs (System.Drawing.Graphics g, System.Drawing.Font font, System.Drawing.Rectangle r, int itemId, System.Windows.Forms.DrawItemState itemState, System.Windows.Forms.StatusBarPanel panel, System.Drawing.Color foreColor, System.Drawing.Color backColor);
new System.Windows.Forms.StatusBarDrawItemEventArgs : System.Drawing.Graphics * System.Drawing.Font * System.Drawing.Rectangle * int * System.Windows.Forms.DrawItemState * System.Windows.Forms.StatusBarPanel * System.Drawing.Color * System.Drawing.Color -> System.Windows.Forms.StatusBarDrawItemEventArgs
Public Sub New (g As Graphics, font As Font, r As Rectangle, itemId As Integer, itemState As DrawItemState, panel As StatusBarPanel, foreColor As Color, backColor As Color)

Parameters

g
Graphics

The Graphics to use to draw the StatusBarPanel.

font
Font

The Font used to render text.

r
Rectangle

The Rectangle that represents the client area of the StatusBarPanel.

itemId
Int32

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

itemState
DrawItemState

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

panel
StatusBarPanel

A StatusBarPanel that represents the panel to draw.

foreColor
Color

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

backColor
Color

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

Applies to