Bahasa

DrawItemEventArgs Konstruktor

Definisi

Menginisialisasi instans baru dari kelas DrawItemEventArgs.

Overload

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

Menginisialisasi instans DrawItemEventArgs baru kelas untuk kontrol yang ditentukan dengan font, status, permukaan yang ditentukan untuk menggambar, dan batas untuk menggambar di dalamnya.

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

Menginisialisasi instans DrawItemEventArgs baru kelas untuk kontrol yang ditentukan dengan font, status, warna latar depan, warna latar belakang, permukaan untuk menggambar, dan batas untuk menggambar di dalamnya.

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

Sumber:
DrawItemEventArgs.cs
Sumber:
DrawItemEventArgs.cs
Sumber:
DrawItemEventArgs.cs
Sumber:
DrawItemEventArgs.cs
Sumber:
DrawItemEventArgs.cs

Menginisialisasi instans DrawItemEventArgs baru kelas untuk kontrol yang ditentukan dengan font, status, permukaan yang ditentukan untuk menggambar, dan batas untuk menggambar di dalamnya.

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)

Parameter

graphics
Graphics

Permukaan Graphics yang akan digambar.

font
Font

yang Font akan digunakan, biasanya properti kontrol Font induk.

rect
Rectangle

Batas Rectangle untuk menggambar di dalam.

index
Int32

Nilai Control.ControlCollection indeks item yang sedang digambar.

state
DrawItemState

Informasi kontrol DrawItemState .

Berlaku untuk

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

Sumber:
DrawItemEventArgs.cs
Sumber:
DrawItemEventArgs.cs
Sumber:
DrawItemEventArgs.cs
Sumber:
DrawItemEventArgs.cs
Sumber:
DrawItemEventArgs.cs

Menginisialisasi instans DrawItemEventArgs baru kelas untuk kontrol yang ditentukan dengan font, status, warna latar depan, warna latar belakang, permukaan untuk menggambar, dan batas untuk menggambar di dalamnya.

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)

Parameter

graphics
Graphics

Permukaan Graphics yang akan digambar.

font
Font

yang Font akan digunakan, biasanya properti kontrol Font induk.

rect
Rectangle

Batas Rectangle untuk menggambar di dalam.

index
Int32

Nilai Control.ControlCollection indeks item yang sedang digambar.

state
DrawItemState

Informasi kontrol DrawItemState .

foreColor
Color

Latar depan Color untuk menggambar kontrol dengan.

backColor
Color

Latar belakang Color untuk menggambar kontrol dengan.

Berlaku untuk