Exemplo n.º 1
0
        /// <summary>
        /// Gets the text asynchronous.
        /// </summary>
        /// <returns>Task&lt;System.String&gt;.</returns>
        public async Task <string> GetTextAsync()
        {
            var text = await clipboard.GetTextAsync();

            if (PreventMultiLineText)
            {
                return(CleanupCarriageReturns(text));
            }
            return(text);
        }
Exemplo n.º 2
0
 public Task <string> GetTextAsync() => _clipboard.GetTextAsync();
Exemplo n.º 3
0
 public Task <string?> GetTextAsync(CancellationToken cancellation = default)
 {
     Check();
     return(clipboard.GetTextAsync(cancellation));
 }
Exemplo n.º 4
0
 public Task <string> GetTextAsync()
 {
     return(clipboard.GetTextAsync());
 }