语言

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 在其中完成绘图。

例外

graphics 是 null。

适用于