TryGetBitmapAsync Method
Returns a bitmap, if available, from a IAsyncDataTransfer instance.
Definition
Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public static Task<Bitmap?> TryGetBitmapAsync(
this IAsyncDataTransfer dataTransfer
)
<ExtensionAttribute>
Public Shared Function TryGetBitmapAsync (
dataTransfer As IAsyncDataTransfer
) As Task(Of Bitmap)
[<ExtensionAttribute>]
static member TryGetBitmapAsync :
dataTransfer : IAsyncDataTransfer -> Task<Bitmap>
Parameters
- IAsyncDataTransfer
- The IAsyncDataTransfer instance.
Return Value
Task(Bitmap)
A Bitmap, or null if the format isn't available.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IAsyncDataTransfer. 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).
See Also
Reference
AsyncDataTransferExtensions Class
Avalonia.Input Namespace
Bitmap