Muokkaa

Jaa


DrawListViewColumnHeaderEventArgs Constructor

Definition

Initializes a new instance of the DrawListViewColumnHeaderEventArgs class.

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)

Parameters

graphics
Graphics

The Graphics surface on which to draw.

bounds
Rectangle

The Rectangle within which to draw.

columnIndex
Int32

The index of the header's column within the Columns collection.

header
ColumnHeader

The ColumnHeader representing the header to draw.

state
ListViewItemStates

A bitwise combination of ListViewItemStates values indicating the current state of the column header.

foreColor
Color

The foreground Color of the header.

backColor
Color

The background Color of the header.

font
Font

The Font used for the header text.

Applies to