次の方法で共有


ControlPaint.DrawScrollButton メソッド (Graphics, Int32, Int32, Int32, Int32, ScrollButton, ButtonState)

スクロール バー コントロールの指定したスクロール ボタンを、指定した状態で、指定したグラフィックスの表面の指定した範囲内に描画します。

Overloads Public Shared Sub DrawScrollButton( _
   ByVal graphics As Graphics, _   ByVal x As Integer, _   ByVal y As Integer, _   ByVal width As Integer, _   ByVal height As Integer, _   ByVal button As ScrollButton, _   ByVal state As ButtonState _)
[C#]
public static void DrawScrollButton(Graphicsgraphics,intx,inty,intwidth,intheight,ScrollButtonbutton,ButtonStatestate);
[C++]
public: static void DrawScrollButton(Graphics* graphics,intx,inty,intwidth,intheight,ScrollButtonbutton,ButtonStatestate);
[JScript]
public static function DrawScrollButton(
   graphics : Graphics,x : int,y : int,width : int,height : int,button : ScrollButton,state : ButtonState);

パラメータ

  • graphics
    描画する Graphics
  • x
    描画する四角形の左上隅の x 座標。
  • y
    描画する四角形の左上隅の y 座標。
  • width
    スクロール ボタンの幅。
  • height
    スクロール ボタンの高さ。
  • button
    描画するスクロール バーの矢印ボタンの種類を指定する ScrollButton 値の 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.DrawScrollButton オーバーロードの一覧 | ScrollButton | ButtonState | ScrollBar