PaintValueEventArgs Constructor (ITypeDescriptorContext^, Object^, Graphics^, Rectangle)
.NET Framework (current version)
Initializes a new instance of the PaintValueEventArgs class using the specified values.
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
Available since 1.1
Show: