DrawItemEventArgs 构造函数

定义

初始化 DrawItemEventArgs 类的新实例。

重载

DrawItemEventArgs(Graphics, Font, Rectangle, Int32, DrawItemState)

为带有指定的字体、状态、绘制表面和绘制边界的指定控件初始化 DrawItemEventArgs 类的新实例。

DrawItemEventArgs(Graphics, Font, Rectangle, Int32, DrawItemState, Color, Color)

为带有指定的字体、状态、前景色、背景色、绘制表面和绘制边界的指定控件初始化 DrawItemEventArgs 类的新实例。

DrawItemEventArgs(Graphics, Font, Rectangle, Int32, DrawItemState)

为带有指定的字体、状态、绘制表面和绘制边界的指定控件初始化 DrawItemEventArgs 类的新实例。

public:
 DrawItemEventArgs(System::Drawing::Graphics ^ graphics, System::Drawing::Font ^ font, System::Drawing::Rectangle rect, int index, System::Windows::Forms::DrawItemState state);
public DrawItemEventArgs (System.Drawing.Graphics graphics, System.Drawing.Font font, System.Drawing.Rectangle rect, int index, System.Windows.Forms.DrawItemState state);
public DrawItemEventArgs (System.Drawing.Graphics graphics, System.Drawing.Font? font, System.Drawing.Rectangle rect, int index, System.Windows.Forms.DrawItemState state);
new System.Windows.Forms.DrawItemEventArgs : System.Drawing.Graphics * System.Drawing.Font * System.Drawing.Rectangle * int * System.Windows.Forms.DrawItemState -> System.Windows.Forms.DrawItemEventArgs
Public Sub New (graphics As Graphics, font As Font, rect As Rectangle, index As Integer, state As DrawItemState)

参数

graphics
Graphics

要在其上进行绘制的 Graphics 表面。

font
Font

要使用的 Font,通常是父控件的 Font 属性。

rect
Rectangle

在其中进行绘制的 Rectangle 边界。

index
Int32

所绘制的项的 Control.ControlCollection 索引值。

state
DrawItemState

控件的 DrawItemState 信息。

适用于

DrawItemEventArgs(Graphics, Font, Rectangle, Int32, DrawItemState, Color, Color)

为带有指定的字体、状态、前景色、背景色、绘制表面和绘制边界的指定控件初始化 DrawItemEventArgs 类的新实例。

public:
 DrawItemEventArgs(System::Drawing::Graphics ^ graphics, System::Drawing::Font ^ font, System::Drawing::Rectangle rect, int index, System::Windows::Forms::DrawItemState state, System::Drawing::Color foreColor, System::Drawing::Color backColor);
public DrawItemEventArgs (System.Drawing.Graphics graphics, System.Drawing.Font font, System.Drawing.Rectangle rect, int index, System.Windows.Forms.DrawItemState state, System.Drawing.Color foreColor, System.Drawing.Color backColor);
public DrawItemEventArgs (System.Drawing.Graphics graphics, System.Drawing.Font? font, System.Drawing.Rectangle rect, int index, System.Windows.Forms.DrawItemState state, System.Drawing.Color foreColor, System.Drawing.Color backColor);
new System.Windows.Forms.DrawItemEventArgs : System.Drawing.Graphics * System.Drawing.Font * System.Drawing.Rectangle * int * System.Windows.Forms.DrawItemState * System.Drawing.Color * System.Drawing.Color -> System.Windows.Forms.DrawItemEventArgs
Public Sub New (graphics As Graphics, font As Font, rect As Rectangle, index As Integer, state As DrawItemState, foreColor As Color, backColor As Color)

参数

graphics
Graphics

要在其上进行绘制的 Graphics 表面。

font
Font

要使用的 Font,通常是父控件的 Font 属性。

rect
Rectangle

在其中进行绘制的 Rectangle 边界。

index
Int32

所绘制的项的 Control.ControlCollection 索引值。

state
DrawItemState

控件的 DrawItemState 信息。

foreColor
Color

绘制控件使用的前景 Color

backColor
Color

绘制控件使用的背景 Color

适用于