Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft