共用方式為


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 值,表示要描繪的面板背景色彩。

適用於