DrawItemEventArgs 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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)
参数
- 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)
参数
- index
- Int32
Control.ControlCollection正在绘制的项的索引值。
- state
- DrawItemState
控件 DrawItemState 的信息。