PaintValueEventArgs 构造函数

定义

使用指定的值初始化 PaintValueEventArgs 类的新实例。

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)

参数

context
ITypeDescriptorContext

该值出现的上下文。

value
Object

要绘制的值。

graphics
Graphics

利用其完成绘制的 Graphics 对象。

bounds
Rectangle

在其中完成绘制的 Rectangle

例外

graphicsnull

适用于