ControlPaint.DrawRadioButton Method (Graphics, Int32, Int32, Int32, Int32, ButtonState)

 

Draws a radio button control in the specified state, on the specified graphics surface, and within the specified bounds.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

Public Shared Sub DrawRadioButton (
	graphics As Graphics,
	x As Integer,
	y As Integer,
	width As Integer,
	height As Integer,
	state As ButtonState
)

Parameters

graphics
Type: System.Drawing.Graphics

The Graphics to draw on.

x
Type: System.Int32

The x-coordinate of the upper left corner of the drawing rectangle.

y
Type: System.Int32

The y-coordinate of the upper left corner of the drawing rectangle.

width
Type: System.Int32

The width of the radio button.

height
Type: System.Int32

The height of the radio button.

state
Type: System.Windows.Forms.ButtonState

A bitwise combination of the ButtonState values that specifies the state to draw the radio button in.

.NET Framework
Available since 1.1
Return to top
Show: