Draws a screen image of a specified control to a specified Graphics.

Namespace:  C1.C1PrintDocument
Assembly:  C1.C1PrintDocument.Classic.2 (in C1.C1PrintDocument.Classic.2.dll)

Syntax

C#
public static void DrawControlImage(
	Graphics g,
	int x,
	int y,
	Control control,
	bool clientAreaOnly
)
Visual Basic (Declaration)
Public Shared Sub DrawControlImage ( _
	g As Graphics, _
	x As Integer, _
	y As Integer, _
	control As Control, _
	clientAreaOnly As Boolean _
)

Parameters

g
Type: System.Drawing..::.Graphics
Graphics to draw on.
x
Type: System..::.Int32
X coordinate of an image on the graphics.
y
Type: System..::.Int32
Y coordinate of an image on the graphics.
control
Type: System.Windows.Forms..::.Control
Control whose image to draw.
clientAreaOnly
Type: System..::.Boolean
Specifies whether all control surface or client area only must be drawn.

See Also