Method HasFormat
HasFormat(ClipboardDataFormatId)
Indicates whether there is data on the Clipboard that is in the specified format.
public static bool HasFormat(ClipboardDataFormatId format)
Parameters
format
ClipboardDataFormatIdThe format of the data to look for.
Returns
HasFormat(string)
Indicates whether there is data on the Clipboard that is in the specified format.
public static bool HasFormat(string format)
Parameters
format
stringThe format of the data to look for.
Returns
Remarks
This method is different from ContainsData(string) as it doesn't get data from the clipboard, it only checks for the format. This method works faster than ContainsData(string).