指定したキャプション ボタン コントロールを、指定した状態で、指定したグラフィックスの表面の指定した範囲内に描画します。
Overloads Public Shared Sub DrawCaptionButton( _
ByVal graphics As Graphics, _ ByVal x As Integer, _ ByVal y As Integer, _ ByVal width As Integer, _ ByVal height As Integer, _ ByVal button As CaptionButton, _ ByVal state As ButtonState _)
[C#]
public static void DrawCaptionButton(Graphicsgraphics,intx,inty,intwidth,intheight,CaptionButtonbutton,ButtonStatestate);
[C++]
public: static void DrawCaptionButton(Graphics* graphics,intx,inty,intwidth,intheight,CaptionButtonbutton,ButtonStatestate);
[JScript]
public static function DrawCaptionButton(
graphics : Graphics,x : int,y : int,width : int,height : int,button : CaptionButton,state : ButtonState);
パラメータ
- graphics
描画が実行される Graphics オブジェクト。 - x
描画する四角形の左上の x 座標。 - y
描画する四角形の左上の y 座標。 - width
描画する四角形の幅。 - height
描画する四角形の高さ。 - button
描画するキャプション ボタンの種類を指定する CaptionButton 値の 1 つ。 - state
描画するボタンの状態を指定する ButtonState 値のビットごとの組み合わせ。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
ControlPaint クラス | ControlPaint メンバ | System.Windows.Forms 名前空間 | ControlPaint.DrawCaptionButton オーバーロードの一覧 | CaptionButton