共用方式為


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

適用於