フォント、状態、描画する表面、および描画する範囲を指定して、特定のコントロールの DrawItemEventArgs クラスの新しいインスタンスを初期化します。
Public Sub New( _
ByVal graphics As Graphics, _ ByVal font As Font, _ ByVal rect As Rectangle, _ ByVal index As Integer, _ ByVal state As DrawItemState _)
[C#]
public DrawItemEventArgs(
Graphicsgraphics,Fontfont,Rectanglerect,intindex,DrawItemStatestate);
[C++]
public: DrawItemEventArgs(
Graphics* graphics,Font* font,Rectanglerect,intindex,DrawItemStatestate);
[JScript]
public function DrawItemEventArgs(
graphics : Graphics,font : Font,rect : Rectangle,index : int,state : DrawItemState);
パラメータ
- graphics
描画が実行される Graphics 表面。 - font
使用する Font 。通常、親コントロールの Font プロパティになります。 - rect
描画の実行範囲を表す Rectangle 境界。 - index
描画されている項目の System.Windows.Forms.Control.ControlCollection インデックス値。 - state
コントロールの DrawItemState 情報。
必要条件
プラットフォーム: 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 コンストラクタのオーバーロードの一覧