Interface IClipboardHandler
Contains properties and methods which allow to work with clipboard.
public interface IClipboardHandler : IDisposable
Properties
- AsyncRequired
Gets whether async methods are required to use when working with the clipboard.
- OnlyText
Gets whether only text format is supported by the clipboard.
Methods
- Flush()
Flushes clipboard data so application leaves the data on the system clipboard when the application exits.
- GetData()
Retrieves the data that is currently on the system clipboard, or null if there is no data on the clipboard.
- GetDataAsync()
Retrieves the data that is currently on the system clipboard, or null if there is no data on the clipboard. Operation is performed asynchroniously.
- GetDataAsync(Action<IDataObject?>)
Retrieves the data that is currently on the system clipboard, or null if there is no data on the clipboard. Operation is performed asynchroniously.
- HasFormat(ClipboardDataFormatId)
Indicates whether there is data on the Clipboard that is in the specified format.
- HasFormat(string)
Indicates whether there is data on the Clipboard that is in the specified format.
- SetData(IDataObject?)
Sets data to the clipboard.
- SetDataAsync(IDataObject?)
Sets data to the clipboard asynchroniously.