ControlPaint.DrawRadioButton 方法

定义

绘制单选按钮控件。

重载

DrawRadioButton(Graphics, Rectangle, ButtonState)

在指定边界内、指定的图形表面上,绘制处于指定状态的单选按钮控件。

DrawRadioButton(Graphics, Int32, Int32, Int32, Int32, ButtonState)

在指定边界内、指定的图形表面上,绘制处于指定状态的单选按钮控件。

DrawRadioButton(Graphics, Rectangle, ButtonState)

Source:
ControlPaint.cs
Source:
ControlPaint.cs
Source:
ControlPaint.cs

在指定边界内、指定的图形表面上,绘制处于指定状态的单选按钮控件。

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

参数

graphics
Graphics

要进行绘制的 Graphics

rectangle
Rectangle

代表单选按钮尺寸的 Rectangle

state
ButtonState

ButtonState 值的按位组合,指定将单选按钮画入的状态。

另请参阅

适用于

DrawRadioButton(Graphics, Int32, Int32, Int32, Int32, ButtonState)

Source:
ControlPaint.cs
Source:
ControlPaint.cs
Source:
ControlPaint.cs

在指定边界内、指定的图形表面上,绘制处于指定状态的单选按钮控件。

public:
 static void DrawRadioButton(System::Drawing::Graphics ^ graphics, int x, int y, int width, int height, System::Windows::Forms::ButtonState state);
public static void DrawRadioButton (System.Drawing.Graphics graphics, int x, int y, int width, int height, System.Windows.Forms.ButtonState state);
static member DrawRadioButton : System.Drawing.Graphics * int * int * int * int * System.Windows.Forms.ButtonState -> unit
Public Shared Sub DrawRadioButton (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 值的按位组合,指定将单选按钮画入的状态。

适用于