Skip to main content

IClipboard Methods

Methods

ClearAsync()Clears any data from the system Clipboard.
FlushAsync()Permanently adds the data that is on the Clipboard so that it is available after the data's original application closes.
GetDataAsync(String)Retrieves data in a specified format from the Clipboard.
GetFormatsAsync()Get list of available Clipboard format.
GetTextAsync()Returns a string containing the text data on the Clipboard.
SetDataObjectAsync(IDataObject)Places a specified non-persistent data object on the system Clipboard.
SetTextAsync(String)Stores text data on the Clipboard. The text data to store is specified as a string.
TryGetInProcessDataObjectAsync()If clipboard contains the IDataObject that was set by a previous call to SetDataObjectAsync(IDataObject), return said IDataObject instance. Otherwise, return null. Note that not every platform supports that method, on unsupported platforms this method will always return null

See Also

Reference

IClipboard Interface
Avalonia.Input.Platform Namespace