System.Windows.Forms.Clipboard.Clear Method

Removes all data from the Clipboard.

Syntax

public static void Clear ()

Remarks

Because the Clipboard is shared by multiple processes, calling this method may have an impact on those processes.

Note:

The System.Windows.Forms.Clipboard class can only be used in threads set to single thread apartment (STA) mode. To use this class, ensure that your Main method is marked with the STAThreadAttribute attribute.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0