Method clipboardData.getBinary(+ 1 overload)
Overload
Gets clipboard data of any format as byte[].
public static byte[] getBinary(int format)
Parameters
format (int) |
Returns
byte[]
|
Exceptions
ArgumentException
Invalid format. Supported are all registered formats and standard formats <CF_MAX except GDI handles. |
AuException
Failed to open clipboard (after 10 s of wait/retry). |
Overload(top)
Gets clipboard data of any format without copying to array. Uses a callback function.
public static T getBinary<T>(int format, Func<nint, int, T> get)
Parameters
format (int) |
get (Func<nint, int, T>)
Callback function that receives data. The clipboard is open until it returns. The data is read-only. |
Returns
T
The return value of the callback function. Returns |
Exceptions
ArgumentException
Invalid format. Supported are all registered formats and standard formats <CF_MAX except GDI handles. |
AuException
Failed to open clipboard (after 10 s of wait/retry). |
Type Parameters
T |