PaintValueEventArgsとは? わかりやすく解説

PaintValueEventArgs クラス

PaintValue メソッドデータ提供します

名前空間: System.Drawing.Design
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

Public Class PaintValueEventArgs
    Inherits EventArgs
Dim instance As PaintValueEventArgs
public class PaintValueEventArgs : EventArgs
public ref class PaintValueEventArgs : public
 EventArgs
public class PaintValueEventArgs extends EventArgs
public class PaintValueEventArgs extends
 EventArgs
解説解説

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
.NET Framework のセキュリティ.NET Frameworkセキュリティ
継承階層継承階層
System.Object
   System.EventArgs
    System.Drawing.Design.PaintValueEventArgs
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
PaintValueEventArgs メンバ
System.Drawing.Design 名前空間

PaintValueEventArgs コンストラクタ

指定した値を使用して、PaintValueEventArgs クラス新しインスタンス初期化します。

名前空間: System.Drawing.Design
アセンブリ: 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
)

パラメータ

context

値が表示されるコンテキスト

value

描画する値。

graphics

描画使用する Graphics オブジェクト

bounds

描画領域を示す Rectangle

例外例外
例外種類条件

ArgumentNullException

graphicsnull 参照 (Visual Basic では Nothing) です。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
PaintValueEventArgs クラス
PaintValueEventArgs メンバ
System.Drawing.Design 名前空間

PaintValueEventArgs プロパティ


PaintValueEventArgs メソッド


PaintValueEventArgs メンバ

PaintValue メソッドデータ提供します

PaintValueEventArgs データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド PaintValueEventArgs 指定した値を使用して、PaintValueEventArgs クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

PaintValueEventArgs クラス
System.Drawing.Design 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からPaintValueEventArgsを検索した結果を表示しています。
Weblioに収録されているすべての辞書からPaintValueEventArgsを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からPaintValueEventArgs を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「PaintValueEventArgs」の関連用語

PaintValueEventArgsのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



PaintValueEventArgsのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS