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

 

Draws a three-state check box 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 static void DrawMixedCheckBox(
	Graphics graphics,
	int x,
	int y,
	int width,
	int height,
	ButtonState state
)

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 check box.

height
Type: System.Int32

The height of the check box.

state
Type: System.Windows.Forms.ButtonState

A bitwise combination of the ButtonState values that specifies the state to draw the check box in.

.NET Framework
Available since 1.1
Return to top
Show: