ControlPaint.DrawScrollButton 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在捲軸控制項上繪製捲軸按鈕。
多載
DrawScrollButton(Graphics, Rectangle, ScrollButton, ButtonState) |
在指定的圖形表層和指定的範圍內,於捲軸控制項上繪製指定狀態的指定捲軸按鈕。 |
DrawScrollButton(Graphics, Int32, Int32, Int32, Int32, ScrollButton, ButtonState) |
在指定的圖形表層和指定的範圍內,於捲軸控制項上繪製指定狀態的指定捲軸按鈕。 |
DrawScrollButton(Graphics, Rectangle, ScrollButton, ButtonState)
在指定的圖形表層和指定的範圍內,於捲軸控制項上繪製指定狀態的指定捲軸按鈕。
public:
static void DrawScrollButton(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle rectangle, System::Windows::Forms::ScrollButton button, System::Windows::Forms::ButtonState state);
public static void DrawScrollButton (System.Drawing.Graphics graphics, System.Drawing.Rectangle rectangle, System.Windows.Forms.ScrollButton button, System.Windows.Forms.ButtonState state);
static member DrawScrollButton : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.ScrollButton * System.Windows.Forms.ButtonState -> unit
Public Shared Sub DrawScrollButton (graphics As Graphics, rectangle As Rectangle, button As ScrollButton, state As ButtonState)
參數
- button
- ScrollButton
其中一個 ScrollButton 值,指定要繪製的捲軸按鈕類型。
- state
- ButtonState
ButtonState 值的位元 (Bitwise) 組合,指定繪製按鈕的狀態。
另請參閱
適用於
DrawScrollButton(Graphics, Int32, Int32, Int32, Int32, ScrollButton, ButtonState)
在指定的圖形表層和指定的範圍內,於捲軸控制項上繪製指定狀態的指定捲軸按鈕。
public:
static void DrawScrollButton(System::Drawing::Graphics ^ graphics, int x, int y, int width, int height, System::Windows::Forms::ScrollButton button, System::Windows::Forms::ButtonState state);
public static void DrawScrollButton (System.Drawing.Graphics graphics, int x, int y, int width, int height, System.Windows.Forms.ScrollButton button, System.Windows.Forms.ButtonState state);
static member DrawScrollButton : System.Drawing.Graphics * int * int * int * int * System.Windows.Forms.ScrollButton * System.Windows.Forms.ButtonState -> unit
Public Shared Sub DrawScrollButton (graphics As Graphics, x As Integer, y As Integer, width As Integer, height As Integer, button As ScrollButton, state As ButtonState)
參數
- x
- Int32
繪圖矩形左上角的 x 座標。
- y
- Int32
繪圖矩形左上角的 y 座標。
- width
- Int32
捲軸按鈕的寬度。
- height
- Int32
捲軸按鈕的高度。
- button
- ScrollButton
其中一個 ScrollButton 值,指定要繪製的捲軸按鈕類型。
- state
- ButtonState
ButtonState 值的位元 (Bitwise) 組合,指定繪製按鈕的狀態。