Indicates whether there is text data on the Clipboard in the format indicated by the specified System.Windows.Forms.TextDataFormat value.
- format
- One of the System.Windows.Forms.TextDataFormat values.
true if there is text data on the Clipboard in the value specified for format; otherwise, false.
Use this method to determine whether the Clipboard contains text data before retrieving it with the erload:System.Windows.Forms.Clipboard.GetText method.
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.