SetTextAsync Method
Places a text on the clipboard.
Definition
Namespace: Avalonia.Input.Platform
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
Task SetTextAsync(
string? text
)
Function SetTextAsync (
text As String
) As Task
abstract SetTextAsync :
text : string -> Task
Parameters
- String
- The text value to set.
Return Value
TaskRemarks
By calling this method, the clipboard will get cleared of any possible previous data.
If text is null or empty, nothing will get placed on the clipboard and this method will be equivalent to ClearAsync().