ToolStripContentPanelRenderEventArgs(Graphics, ToolStripContentPanel) 建構函式

定義

初始化 ToolStripContentPanelRenderEventArgs 類別的新執行個體。

public:
 ToolStripContentPanelRenderEventArgs(System::Drawing::Graphics ^ g, System::Windows::Forms::ToolStripContentPanel ^ contentPanel);
public ToolStripContentPanelRenderEventArgs (System.Drawing.Graphics g, System.Windows.Forms.ToolStripContentPanel contentPanel);
new System.Windows.Forms.ToolStripContentPanelRenderEventArgs : System.Drawing.Graphics * System.Windows.Forms.ToolStripContentPanel -> System.Windows.Forms.ToolStripContentPanelRenderEventArgs
Public Sub New (g As Graphics, contentPanel As ToolStripContentPanel)

參數

g
Graphics

Graphics,表示 GDI+ 繪圖介面。

contentPanel
ToolStripContentPanel

要呈現的 ToolStripContentPanel

例外狀況

gcontentPanel 為 null。

適用於