次の方法で共有


DrawItemEventArgs コンストラクタ (Graphics, Font, Rectangle, Int32, DrawItemState, Color, Color)

フォント、状態、前景色、背景色、描画する表面、および描画する範囲を指定して、特定のコントロールの DrawItemEventArgs クラスの新しいインスタンスを初期化します。

Public Sub New( _
   ByVal graphics As Graphics, _   ByVal font As Font, _   ByVal rect As Rectangle, _   ByVal index As Integer, _   ByVal state As DrawItemState, _   ByVal foreColor As Color, _   ByVal backColor As Color _)
[C#]
public DrawItemEventArgs(
   Graphicsgraphics,Fontfont,Rectanglerect,intindex,DrawItemStatestate,ColorforeColor,ColorbackColor);
[C++]
public: DrawItemEventArgs(
   Graphics* graphics,Font* font,Rectanglerect,intindex,DrawItemStatestate,ColorforeColor,ColorbackColor);
[JScript]
public function DrawItemEventArgs(
   graphics : Graphics,font : Font,rect : Rectangle,index : int,state : DrawItemState,foreColor : Color,backColor : Color);

パラメータ

  • graphics
    描画が実行される Graphics 表面。
  • font
    使用する Font 。通常、親コントロールの Font プロパティになります。
  • rect
    描画の実行範囲を表す Rectangle 境界。
  • index
    描画されている項目の System.Windows.Forms.Control.ControlCollection インデックス値。
  • state
    コントロールの DrawItemState 情報。
  • foreColor
    コントロールを描画するための前景色を示す Color
  • backColor
    コントロールを描画するための背景色を示す Color

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

DrawItemEventArgs クラス | DrawItemEventArgs メンバ | System.Windows.Forms 名前空間 | DrawItemEventArgs コンストラクタのオーバーロードの一覧