共用方式為


ControlPaint.DrawComboButton 方法

定義

在下拉式方塊控制項上繪製下拉式按鈕。

多載

DrawComboButton(Graphics, Rectangle, ButtonState)

在指定的圖形表層和指定的範圍內,在下拉式方塊控制項上繪製指定狀態的下拉式按鈕。

DrawComboButton(Graphics, Int32, Int32, Int32, Int32, ButtonState)

在指定的圖形表層和指定的範圍內,在下拉式方塊控制項上繪製指定狀態的下拉式按鈕。

DrawComboButton(Graphics, Rectangle, ButtonState)

來源:
ControlPaint.cs
來源:
ControlPaint.cs
來源:
ControlPaint.cs

在指定的圖形表層和指定的範圍內,在下拉式方塊控制項上繪製指定狀態的下拉式按鈕。

public:
 static void DrawComboButton(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle rectangle, System::Windows::Forms::ButtonState state);
public static void DrawComboButton (System.Drawing.Graphics graphics, System.Drawing.Rectangle rectangle, System.Windows.Forms.ButtonState state);
static member DrawComboButton : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.ButtonState -> unit
Public Shared Sub DrawComboButton (graphics As Graphics, rectangle As Rectangle, state As ButtonState)

參數

graphics
Graphics

要在上面繪製的 Graphics

rectangle
Rectangle

Rectangle,表示下拉式方塊的大小。

state
ButtonState

ButtonState 值的位元 (Bitwise) 組合,指定繪製核取方塊的狀態。

適用於

DrawComboButton(Graphics, Int32, Int32, Int32, Int32, ButtonState)

來源:
ControlPaint.cs
來源:
ControlPaint.cs
來源:
ControlPaint.cs

在指定的圖形表層和指定的範圍內,在下拉式方塊控制項上繪製指定狀態的下拉式按鈕。

public:
 static void DrawComboButton(System::Drawing::Graphics ^ graphics, int x, int y, int width, int height, System::Windows::Forms::ButtonState state);
public static void DrawComboButton (System.Drawing.Graphics graphics, int x, int y, int width, int height, System.Windows.Forms.ButtonState state);
static member DrawComboButton : System.Drawing.Graphics * int * int * int * int * System.Windows.Forms.ButtonState -> unit
Public Shared Sub DrawComboButton (graphics As Graphics, x As Integer, y As Integer, width As Integer, height As Integer, state As ButtonState)

參數

graphics
Graphics

要在上面繪製的 Graphics

x
Int32

框線矩形左上方的 x 座標。

y
Int32

框線矩形左上方的 y 座標。

width
Int32

下拉式方塊的寬度。

height
Int32

下拉式方塊的高度。

state
ButtonState

ButtonState 值的位元 (Bitwise) 組合,指定繪製核取方塊的狀態。

適用於