ClipboardExtensions Class
Contains extension methods related to IClipboard.
Definition
Namespace: Avalonia.Input.Platform
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public static class ClipboardExtensions
<ExtensionAttribute>
Public NotInheritable Class ClipboardExtensions
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type ClipboardExtensions = class end
Inheritance | Object → ClipboardExtensions |
Methods
GetDataFormatsAsync(IClipboard) | Gets a list containing the formats currently available from the clipboard. |
SetFileAsync(IClipboard, IStorageItem) | Places a file on the clipboard. |
SetFilesAsync(IClipboard, IEnumerable(IStorageItem)) | Places a list of files on the clipboard. |
SetTextAsync(IClipboard, String) | Places a text on the clipboard. |
SetValueAsync(T)(IClipboard, DataFormat(T), T) | Places a single value on the clipboard in the specified format. |
SetValuesAsync(T)(IClipboard, DataFormat(T), IEnumerable(T)) | Places multiple values on the clipboard in the specified format. |
TryGetFileAsync(IClipboard) | Returns a file, if available, from the clipboard. |
TryGetFilesAsync(IClipboard) | Returns a list of files, if available, from the clipboard. |
TryGetTextAsync(IClipboard) | Returns a text, if available, from the clipboard. |
TryGetValueAsync(T)(IClipboard, DataFormat(T)) | Tries to get a value for a given format from the clipboard. |
TryGetValuesAsync(T)(IClipboard, DataFormat(T)) | Tries to get multiple values for a given format from the clipboard. |