Επεξεργασία

Κοινή χρήση μέσω


PaintValueEventArgs Constructor

Definition

Initializes a new instance of the PaintValueEventArgs class using the specified values.

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)

Parameters

context
ITypeDescriptorContext

The context in which the value appears.

value
Object

The value to paint.

graphics
Graphics

The Graphics object with which drawing is to be done.

bounds
Rectangle

The Rectangle in which drawing is to be done.

Exceptions

graphics is null.

Applies to