SetBitmapAsync Method
Places a bitmap on the clipboard.
Definition
Namespace: Avalonia.Input.Platform
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public static Task SetBitmapAsync(
this IClipboard clipboard,
Bitmap? bitmap
)
<ExtensionAttribute>
Public Shared Function SetBitmapAsync (
clipboard As IClipboard,
bitmap As Bitmap
) As Task
[<ExtensionAttribute>]
static member SetBitmapAsync :
clipboard : IClipboard *
bitmap : Bitmap -> Task
Parameters
- IClipboard
- The clipboard instance.
- Bitmap
- The bitmap to place on the clipboard.
Return Value
TaskUsage 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).
Remarks
By calling this method, the clipboard will get cleared of any possible previous data.
If bitmap is null, nothing will get placed on the clipboard and this method will be equivalent to ClearAsync().
See Also
Reference
ClipboardExtensions Class
Avalonia.Input.Platform Namespace
Bitmap