ToolStripItemRenderEventArgs(Graphics, ToolStripItem) 构造函数

定义

使用指定的 ToolStripItemRenderEventArgs 为指定的 ToolStripItem 初始化 Graphics 的新实例。Initializes a new instance of the ToolStripItemRenderEventArgs class for the specified ToolStripItem and using the specified Graphics.

public:
 ToolStripItemRenderEventArgs(System::Drawing::Graphics ^ g, System::Windows::Forms::ToolStripItem ^ item);
public ToolStripItemRenderEventArgs (System.Drawing.Graphics g, System.Windows.Forms.ToolStripItem item);
new System.Windows.Forms.ToolStripItemRenderEventArgs : System.Drawing.Graphics * System.Windows.Forms.ToolStripItem -> System.Windows.Forms.ToolStripItemRenderEventArgs
Public Sub New (g As Graphics, item As ToolStripItem)

参数

g
Graphics

用于绘制项的 Graphics 对象。The Graphics object used to draw the item.

item
ToolStripItem

要绘制的 ToolStripItemThe ToolStripItem to be drawn.

适用于