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

表示 GDI+ 绘图表面的 Graphics

contentPanel
ToolStripContentPanel

要呈现的 ToolStripContentPanel

例外

gcontentPanel 为 null。

适用于