Class | Win32::Clipboard |
In: |
lib/win32/clipboard.rb
|
Parent: | Object |
data | -> | get_data |
Returns a hash of all the current formats, with the format number as the key and the format name as the value for that key.
Registers the given format (a String) as a clipboard format, which can then be used as a valid clipboard format.
If a registered format with the specified name already exists, a new format is not registered and the return value identifies the existing format. This enables more than one application to copy and paste data using the same registered clipboard format. Note that the format name comparison is case-insensitive.
Registered clipboard formats are identified by values in the range 0xC000 through 0xFFFF.
Sets the clipboard contents to the data that you specify. You may optionally specify a clipboard format. The default is Clipboard::TEXT.