StatusBarDrawItemEventArgs 构造函数

定义

初始化 StatusBarDrawItemEventArgs 类的新实例。

重载

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

初始化 StatusBarDrawItemEventArgs 类的新实例,而不指定 StatusBarPanel 的背景和前景色。

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

使用为 StatusBarDrawItemEventArgs 指定的前景色和背景色,初始化 StatusBarPanel 的新实例。

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

初始化 StatusBarDrawItemEventArgs 类的新实例,而不指定 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)

参数

g
Graphics

用于绘制 GraphicsStatusBarPanel

font
Font

用于呈现文本的 Font

r
Rectangle

表示 Rectangle 的工作区的 StatusBarPanel

itemId
Int32

StatusBar.StatusBarPanelCollection 控件的 StatusBar 中面板的从零开始的索引。

itemState
DrawItemState

表示有关 DrawItemState 的状态信息的 StatusBarPanel 值之一。

panel
StatusBarPanel

表示要描述的面板的 StatusBarPanel

另请参阅

适用于

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

使用为 StatusBarDrawItemEventArgs 指定的前景色和背景色,初始化 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)

参数

g
Graphics

用于绘制 GraphicsStatusBarPanel

font
Font

用于呈现文本的 Font

r
Rectangle

表示 Rectangle 的工作区的 StatusBarPanel

itemId
Int32

StatusBar.StatusBarPanelCollection 控件的 StatusBar 中面板的从零开始的索引。

itemState
DrawItemState

表示有关 DrawItemState 的状态信息的 StatusBarPanel 值之一。

panel
StatusBarPanel

表示要描述的面板的 StatusBarPanel

foreColor
Color

Color 值之一,它表示要描述的面板的前景色。

backColor
Color

Color 值之一,它表示要描述的面板的背景色。

适用于