Partager via


DrawListViewColumnHeaderEventArgs Constructeur

Définition

Initialise une nouvelle instance de la classe 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)

Paramètres

graphics
Graphics

Surface Graphics sur laquelle dessiner.

bounds
Rectangle

Rectangle au sein duquel dessiner.

columnIndex
Int32

Index de la colonne de l'en-tête au sein de la collection Columns.

header
ColumnHeader

ColumnHeader représentant l'en-tête à dessiner.

state
ListViewItemStates

Combinaison d'opérations de bits des valeurs ListViewItemStates indiquant l'état actuel de l'en-tête de la colonne.

foreColor
Color

Color de premier plan de l'en-tête.

backColor
Color

Color d'arrière-plan de l'en-tête.

font
Font

Font utilisé pour le texte d'en-tête.

S’applique à