Class ControlSnapshot
Control Snap shot.
Inheritance
System.Object
ControlSnapshot
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class ControlSnapshot : Object
Constructors
ControlSnapshot()
Declaration
public ControlSnapshot()
Methods
PrintControl(Control, Size)
Captures the contents of a Windows Forms control using the WM_PRINTCLIENT or WM_PRINT message.
Declaration
public static Image PrintControl(Control control, Size size)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Forms.Control | control | The control to be captured. |
| System.Drawing.Size | size | The size of the window. |
Returns
| Type | Description |
|---|---|
| System.Drawing.Image | A Metafile with the display contents of the Windows Forms control. |