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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
PaintValueEventArgs コンストラクタ
アセンブリ: System.Drawing (system.drawing.dll 内)
構文
Public Sub New ( _ context As ITypeDescriptorContext, _ value As Object, _ graphics As Graphics, _ bounds As Rectangle _ )
Dim context As ITypeDescriptorContext Dim value As Object Dim graphics As Graphics Dim bounds As Rectangle Dim instance As New PaintValueEventArgs(context, value, graphics, bounds)
public PaintValueEventArgs ( ITypeDescriptorContext context, Object value, Graphics graphics, Rectangle bounds )
public: PaintValueEventArgs ( ITypeDescriptorContext^ context, Object^ value, Graphics^ graphics, Rectangle bounds )
public PaintValueEventArgs ( ITypeDescriptorContext context, Object value, Graphics graphics, Rectangle bounds )
public function PaintValueEventArgs ( context : ITypeDescriptorContext, value : Object, graphics : Graphics, bounds : Rectangle )
プラットフォーム
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
PaintValueEventArgs プロパティ
パブリック プロパティ
名前 | 説明 | |
---|---|---|
Bounds | 描画領域を示す四角形を取得します。 | |
Context | 値が表示されるコンテキストに関する追加情報を取得するために使用する ITypeDescriptorContext インターフェイスを取得します。 | |
Graphics | 描画に使用する Graphics オブジェクトを取得します。 | |
Value | 描画する値を取得します。 |
PaintValueEventArgs メソッド
パブリック メソッド
名前 | 説明 | |
---|---|---|
Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) | |
GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) | |
GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) | |
ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) | |
ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |
名前 | 説明 | |
---|---|---|
Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) | |
MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |
PaintValueEventArgs メンバ
PaintValueEventArgs データ型で公開されるメンバを以下の表に示します。
パブリック コンストラクタ
パブリック プロパティ
名前 | 説明 | |
---|---|---|
Bounds | 描画領域を示す四角形を取得します。 | |
Context | 値が表示されるコンテキストに関する追加情報を取得するために使用する ITypeDescriptorContext インターフェイスを取得します。 | |
Graphics | 描画に使用する Graphics オブジェクトを取得します。 | |
Value | 描画する値を取得します。 |
名前 | 説明 | |
---|---|---|
Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) | |
GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) | |
GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) | |
ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) | |
ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |
名前 | 説明 | |
---|---|---|
Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) | |
MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |
Weblioに収録されているすべての辞書からPaintValueEventArgsを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からPaintValueEventArgs を検索
- PaintValueEventArgsのページへのリンク