Class ControlSnapshot
Control Snap shot.
Inheritance
System.Object
ControlSnapshot
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class ControlSnapshot
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. |