/// <summary> /// Gets the text asynchronous. /// </summary> /// <returns>Task<System.String>.</returns> public async Task <string> GetTextAsync() { var text = await clipboard.GetTextAsync(); if (PreventMultiLineText) { return(CleanupCarriageReturns(text)); } return(text); }
public Task <string> GetTextAsync() => _clipboard.GetTextAsync();
public Task <string?> GetTextAsync(CancellationToken cancellation = default) { Check(); return(clipboard.GetTextAsync(cancellation)); }
public Task <string> GetTextAsync() { return(clipboard.GetTextAsync()); }