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 名前空間


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

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

辞書ショートカット

すべての辞書の索引

「PaintValueEventArgs クラス」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS