PaintValueEventArgs Constructor (ITypeDescriptorContext, Object, Graphics, Rectangle)

 

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

Namespace:   System.Drawing.Design
Assembly:  System.Drawing (in System.Drawing.dll)

public PaintValueEventArgs(
	ITypeDescriptorContext context,
	object value,
	Graphics graphics,
	Rectangle bounds
)

Parameters

context
Type: System.ComponentModel.ITypeDescriptorContext

The context in which the value appears.

value
Type: System.Object

The value to paint.

graphics
Type: System.Drawing.Graphics

The Graphics object with which drawing is to be done.

bounds
Type: System.Drawing.Rectangle

The Rectangle in which drawing is to be done.

Exception Condition
ArgumentNullException

graphics is null.

.NET Framework
Available since 1.1
Return to top
Show: