StatusBarDrawItemEventArgs 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 StatusBarDrawItemEventArgs 類別的新執行個體。
多載
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
用來繪製 Graphics 的 StatusBarPanel。
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
用來繪製 Graphics 的 StatusBarPanel。
Rectangle,表示 StatusBarPanel 的工作區。
- itemId
- Int32
在 StatusBar.StatusBarPanelCollection 控制項的 StatusBar 內,面板之以零起始的索引。
- itemState
- DrawItemState
其中一個 DrawItemState 值,表示 StatusBarPanel 的相關狀態資訊。
- panel
- StatusBarPanel
StatusBarPanel,表示要描繪的面板。