StatusBarPanel の背景色と前景色を指定して、StatusBarDrawItemEventArgs クラスの新しいインスタンスを初期化します。
名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文
'宣言
Public Sub New ( _
g As Graphics, _
font As Font, _
r As Rectangle, _
itemId As Integer, _
itemState As DrawItemState, _
panel As StatusBarPanel, _
foreColor As Color, _
backColor As Color _
)
'使用
Dim g As Graphics
Dim font As Font
Dim r As Rectangle
Dim itemId As Integer
Dim itemState As DrawItemState
Dim panel As StatusBarPanel
Dim foreColor As Color
Dim backColor As Color
Dim instance As New StatusBarDrawItemEventArgs(g, font, r, itemId, itemState, panel, foreColor, backColor)
public StatusBarDrawItemEventArgs (
Graphics g,
Font font,
Rectangle r,
int itemId,
DrawItemState itemState,
StatusBarPanel panel,
Color foreColor,
Color backColor
)
public:
StatusBarDrawItemEventArgs (
Graphics^ g,
Font^ font,
Rectangle r,
int itemId,
DrawItemState itemState,
StatusBarPanel^ panel,
Color foreColor,
Color backColor
)
public StatusBarDrawItemEventArgs (
Graphics g,
Font font,
Rectangle r,
int itemId,
DrawItemState itemState,
StatusBarPanel panel,
Color foreColor,
Color backColor
)
public function StatusBarDrawItemEventArgs (
g : Graphics,
font : Font,
r : Rectangle,
itemId : int,
itemState : DrawItemState,
panel : StatusBarPanel,
foreColor : Color,
backColor : Color
)
パラメータ
- g
StatusBarPanel を描画するために使用する Graphics。
- font
テキストを表示するために使用する Font。
- r
StatusBarPanel のクライアント領域を表す Rectangle。
- itemId
StatusBar コントロールの StatusBar.StatusBarPanelCollection 内のパネルの 0 から始まるインデックス番号。
- itemState
StatusBarPanel に関するステータス情報を表す DrawItemState 値の 1 つ。
- panel
描画するパネルを表す StatusBarPanel。
- foreColor
描画するパネルの前景色を表す System.Drawing.Color 値の 1 つ。
- backColor
描画するパネルの背景色を表す System.Drawing.Color 値の 1 つ。
プラットフォーム
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 2.0、1.1
参照
関連項目
StatusBarDrawItemEventArgs クラス
StatusBarDrawItemEventArgs メンバ
System.Windows.Forms 名前空間