Example #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);
        }
Example #2
0
 public Task <string> GetTextAsync() => _clipboard.GetTextAsync();
Example #3
0
 public Task <string?> GetTextAsync(CancellationToken cancellation = default)
 {
     Check();
     return(clipboard.GetTextAsync(cancellation));
 }
Example #4
0
 public Task <string> GetTextAsync()
 {
     return(clipboard.GetTextAsync());
 }