ControlPaint.DrawComboButton 方法

定义

在组合框控件上绘制下拉按钮。

重载

DrawComboButton(Graphics, Rectangle, ButtonState)

在组合框控件上绘制位于指定边界内、在指定的图形表面上、处于指定状态的下拉按钮。

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

在组合框控件上绘制位于指定边界内、在指定的图形表面上、处于指定状态的下拉按钮。

DrawComboButton(Graphics, Rectangle, ButtonState)

在组合框控件上绘制位于指定边界内、在指定的图形表面上、处于指定状态的下拉按钮。

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 值的按位组合,指定将组合框画入的状态。

适用于

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

在组合框控件上绘制位于指定边界内、在指定的图形表面上、处于指定状态的下拉按钮。

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 值的按位组合,指定将组合框画入的状态。

适用于