WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ControlSnapshot - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ControlSnapshot

    Control Snap shot.

    Inheritance
    System.Object
    ControlSnapshot
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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.

    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved