DrawListViewColumnHeaderEventArgs 构造函数

定义

初始化 DrawListViewColumnHeaderEventArgs 类的新实例。

public:
 DrawListViewColumnHeaderEventArgs(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle bounds, int columnIndex, System::Windows::Forms::ColumnHeader ^ header, System::Windows::Forms::ListViewItemStates state, System::Drawing::Color foreColor, System::Drawing::Color backColor, System::Drawing::Font ^ font);
public DrawListViewColumnHeaderEventArgs (System.Drawing.Graphics graphics, System.Drawing.Rectangle bounds, int columnIndex, System.Windows.Forms.ColumnHeader header, System.Windows.Forms.ListViewItemStates state, System.Drawing.Color foreColor, System.Drawing.Color backColor, System.Drawing.Font font);
public DrawListViewColumnHeaderEventArgs (System.Drawing.Graphics graphics, System.Drawing.Rectangle bounds, int columnIndex, System.Windows.Forms.ColumnHeader? header, System.Windows.Forms.ListViewItemStates state, System.Drawing.Color foreColor, System.Drawing.Color backColor, System.Drawing.Font? font);
new System.Windows.Forms.DrawListViewColumnHeaderEventArgs : System.Drawing.Graphics * System.Drawing.Rectangle * int * System.Windows.Forms.ColumnHeader * System.Windows.Forms.ListViewItemStates * System.Drawing.Color * System.Drawing.Color * System.Drawing.Font -> System.Windows.Forms.DrawListViewColumnHeaderEventArgs
Public Sub New (graphics As Graphics, bounds As Rectangle, columnIndex As Integer, header As ColumnHeader, state As ListViewItemStates, foreColor As Color, backColor As Color, font As Font)

参数

graphics
Graphics

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

bounds
Rectangle

要在其中进行绘制的 Rectangle

columnIndex
Int32

Columns 集合中的标题列索引。

header
ColumnHeader

表示要绘制的标题的 ColumnHeader

state
ListViewItemStates

ListViewItemStates 值的按位组合,指示列标题的当前状态。

foreColor
Color

标题的前景 Color

backColor
Color

标题的背景 Color

font
Font

标题文本所用的 Font

适用于