DrawItemEventArgs 构造函数

定义

初始化 DrawItemEventArgs 类的新实例。

重载

名称 说明
DrawItemEventArgs(Graphics, Font, Rectangle, Int32, DrawItemState)

使用指定的字体、状态、要绘制的图面以及要在其中绘制的边界初始化指定控件的类的新实例 DrawItemEventArgs

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

使用指定的字体、状态、前景颜色、背景色、要绘制的图面以及要在其中绘制的边界初始化指定控件的类的新实例 DrawItemEventArgs

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

Source:
DrawItemEventArgs.cs
Source:
DrawItemEventArgs.cs
Source:
DrawItemEventArgs.cs
Source:
DrawItemEventArgs.cs
Source:
DrawItemEventArgs.cs

使用指定的字体、状态、要绘制的图面以及要在其中绘制的边界初始化指定控件的类的新实例 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)

Source:
DrawItemEventArgs.cs
Source:
DrawItemEventArgs.cs
Source:
DrawItemEventArgs.cs
Source:
DrawItemEventArgs.cs
Source:
DrawItemEventArgs.cs

使用指定的字体、状态、前景颜色、背景色、要绘制的图面以及要在其中绘制的边界初始化指定控件的类的新实例 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

适用于