共用方式為


ToolStripItemImageRenderEventArgs 建構函式

定義

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

多載

ToolStripItemImageRenderEventArgs(Graphics, ToolStripItem, Rectangle)

針對在指定之空間內且具有指定之屬性的 ToolStripItemImageRenderEventArgs,初始化 ToolStripItem 類別的新執行個體。

ToolStripItemImageRenderEventArgs(Graphics, ToolStripItem, Image, Rectangle)

針對在指定之空間內顯示影像且具有指定之屬性的 ToolStripItemImageRenderEventArgs,初始化 ToolStripItem 類別的新執行個體。

ToolStripItemImageRenderEventArgs(Graphics, ToolStripItem, Rectangle)

針對在指定之空間內且具有指定之屬性的 ToolStripItemImageRenderEventArgs,初始化 ToolStripItem 類別的新執行個體。

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

參數

g
Graphics

繪製影像所用的 Graphics

imageRectangle
Rectangle

影像的周圍區域。

適用於

ToolStripItemImageRenderEventArgs(Graphics, ToolStripItem, Image, Rectangle)

針對在指定之空間內顯示影像且具有指定之屬性的 ToolStripItemImageRenderEventArgs,初始化 ToolStripItem 類別的新執行個體。

public:
 ToolStripItemImageRenderEventArgs(System::Drawing::Graphics ^ g, System::Windows::Forms::ToolStripItem ^ item, System::Drawing::Image ^ image, System::Drawing::Rectangle imageRectangle);
public ToolStripItemImageRenderEventArgs (System.Drawing.Graphics g, System.Windows.Forms.ToolStripItem item, System.Drawing.Image image, System.Drawing.Rectangle imageRectangle);
public ToolStripItemImageRenderEventArgs (System.Drawing.Graphics g, System.Windows.Forms.ToolStripItem item, System.Drawing.Image? image, System.Drawing.Rectangle imageRectangle);
new System.Windows.Forms.ToolStripItemImageRenderEventArgs : System.Drawing.Graphics * System.Windows.Forms.ToolStripItem * System.Drawing.Image * System.Drawing.Rectangle -> System.Windows.Forms.ToolStripItemImageRenderEventArgs
Public Sub New (g As Graphics, item As ToolStripItem, image As Image, imageRectangle As Rectangle)

參數

g
Graphics

繪製影像所用的 Graphics

item
ToolStripItem

要在其上繪製影像的 ToolStripItem

image
Image

要繪製的 Image

imageRectangle
Rectangle

影像的周圍區域。

適用於