public static TextGetOptions ToUwp(this QuickPadTextGetOptions options) { return(TextGetOptions.TryParse <TextGetOptions>(options.ToString(), out var result) ? result : default);
// Only call on main thread! public override string GetText(QuickPadTextGetOptions options) { Document.GetText(options.ToUwp(), out var value); return(value); }
public abstract string GetText(QuickPadTextGetOptions options);
public override async Task <string> GetTextAsync(QuickPadTextGetOptions options) => await DispatcherHelper.ExecuteOnUIThreadAsync(() => GetText(options));
public abstract Task <string> GetTextAsync(QuickPadTextGetOptions options);