PaintValueEventArgs クラス
アセンブリ: System.Drawing (system.drawing.dll 内)


PaintValueEventArgs は、指定されたオブジェクトの値に基づいた領域内で UITypeEditor が描画を行うために必要な情報 (描画領域を示す Rectangle や描画に使用する Graphics オブジェクトなど) をすべて提供します。

PaintValueEventArgs を返すメソッドのコード例を次に示します。これは、オブジェクトの値が表す内容を、指定した領域内に描画するために必要なデータを提供します。
Public Function CreatePaintValueEventArgs(ByVal context As System.ComponentModel.ITypeDescriptorContext, ByVal value As Object, ByVal graphics As Graphics, ByVal bounds As Rectangle) As PaintValueEventArgs Dim e As New PaintValueEventArgs(context, value, graphics, bounds) ' The context of the paint value event e.Context ' The object representing the value to paint e.Value ' The graphics to use to paint e.Graphics ' The rectangle in which to paint e.Bounds Return e End Function
public PaintValueEventArgs CreatePaintValueEventArgs(System.ComponentModel.ITypeDescriptorContext context, object value, Graphics graphics, Rectangle bounds) { PaintValueEventArgs e = new PaintValueEventArgs(context, value, graphics, bounds); // The context of the paint value event e.Context // The object representing the value to paint e.Value // The graphics to use to paint e.Graphics // The rectangle in which to paint e.Bounds return e; }
PaintValueEventArgs^ CreatePaintValueEventArgs( System::ComponentModel::ITypeDescriptorContext^ context, Object^ value, Graphics^ graphics, Rectangle bounds ) { PaintValueEventArgs^ e = gcnew PaintValueEventArgs( context, value, graphics, bounds ); // The context of the paint value event e.Context // The Object representing the value to paint e.Value // The graphics to use to paint e.Graphics // The rectangle in which to paint e.Bounds return e; }
public PaintValueEventArgs CreatePaintValueEventArgs(System.ComponentModel. ITypeDescriptorContext context, Object value, Graphics graphics, Rectangle bounds) { PaintValueEventArgs e = new PaintValueEventArgs(context, value, graphics, bounds); // The context of the paint value event e.Context // The object representing the value to paint e.Value // The graphics to use to paint e.Graphics // The rectangle in which to paint e.Bounds return e; } //CreatePaintValueEventArgs


System.EventArgs
System.Drawing.Design.PaintValueEventArgs


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からPaintValueEventArgs クラスを検索する場合は、下記のリンクをクリックしてください。

- PaintValueEventArgs クラスのページへのリンク