Skip to main content

ClipboardExtensions Class

Contains extension methods related to IClipboard.

Definition

Namespace: Avalonia.Input.Platform
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public static class ClipboardExtensions
View Source
InheritanceObject → 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.

See Also

Reference

Avalonia.Input.Platform Namespace