PaintValueEventArgs クラス
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
PaintValue(Object, Graphics, Rectangle) メソッドのデータを提供します。
public ref class PaintValueEventArgs : EventArgs
public class PaintValueEventArgs : EventArgs
type PaintValueEventArgs = class
inherit EventArgs
Public Class PaintValueEventArgs
Inherits EventArgs
- 継承
次のコード例のメソッドは、 を返 PaintValueEventArgs します。このメソッドは、特定の領域内のオブジェクトの値の表現を描画するために必要なデータを提供します。
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;
}
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
PaintValueEventArgsは、指定したUITypeEditorオブジェクトの値に基づいて領域内で描画するために必要なすべての情報を提供します。これには、図面を実行する必要がある オブジェクトやGraphics図面を実行するオブジェクトが含まれますRectangle。
Paint |
指定した値を使用して、PaintValueEventArgs クラスの新しいインスタンスを初期化します。 |
Bounds |
描画領域を示す四角形を取得します。 |
Context |
値が表示されるコンテキストに関する追加情報を取得するために使用する ITypeDescriptorContext インターフェイスを取得します。 |
Graphics |
描画に使用する Graphics オブジェクトを取得します。 |
Value |
描画する値を取得します。 |
Equals(Object) |
指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。 (継承元 Object) |
Get |
既定のハッシュ関数として機能します。 (継承元 Object) |
Get |
現在のインスタンスの Type を取得します。 (継承元 Object) |
Memberwise |
現在の Object の簡易コピーを作成します。 (継承元 Object) |
To |
現在のオブジェクトを表す文字列を返します。 (継承元 Object) |
製品 | バージョン |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。