Bagikan melalui


PaintValueEventArgs Konstruktor

Definisi

Menginisialisasi instans PaintValueEventArgs baru kelas menggunakan nilai yang ditentukan.

public:
 PaintValueEventArgs(System::ComponentModel::ITypeDescriptorContext ^ context, System::Object ^ value, System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle bounds);
public PaintValueEventArgs (System.ComponentModel.ITypeDescriptorContext context, object value, System.Drawing.Graphics graphics, System.Drawing.Rectangle bounds);
public PaintValueEventArgs (System.ComponentModel.ITypeDescriptorContext? context, object? value, System.Drawing.Graphics graphics, System.Drawing.Rectangle bounds);
new System.Drawing.Design.PaintValueEventArgs : System.ComponentModel.ITypeDescriptorContext * obj * System.Drawing.Graphics * System.Drawing.Rectangle -> System.Drawing.Design.PaintValueEventArgs
Public Sub New (context As ITypeDescriptorContext, value As Object, graphics As Graphics, bounds As Rectangle)

Parameter

context
ITypeDescriptorContext

Konteks di mana nilai muncul.

value
Object

Nilai yang akan dicat.

graphics
Graphics

Objek Graphics yang gambarnya akan dilakukan.

bounds
Rectangle

Gambar Rectangle mana yang harus dilakukan.

Pengecualian

graphicsadalah null.

Berlaku untuk