GetDataFormatsAsync Method
Gets a list containing the formats currently available from the clipboard.
Definition
Namespace: Avalonia.Input.Platform
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public static Task<IReadOnlyList<DataFormat>> GetDataFormatsAsync(
this IClipboard clipboard
)
<ExtensionAttribute>
Public Shared Function GetDataFormatsAsync (
clipboard As IClipboard
) As Task(Of IReadOnlyList(Of DataFormat))
[<ExtensionAttribute>]
static member GetDataFormatsAsync :
clipboard : IClipboard -> Task<IReadOnlyList<DataFormat>>
Parameters
Return Value
Task(IReadOnlyList(DataFormat))
A list of formats. It can be empty if the clipboard is empty.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IClipboard. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).