語言

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。

適用於