public string GetText(TextDataFormat format) { var instance = new ClipboardAsync(); var staThread = new Thread(instance._thGetText); staThread.SetApartmentState(ApartmentState.STA); staThread.Start(format); staThread.Join(); return(instance._GetText); }
public bool ContainsText(object format) { var instance = new ClipboardAsync(); var staThread = new Thread(instance._thContainsFileDropList); staThread.SetApartmentState(ApartmentState.STA); staThread.Start(format); staThread.Join(); return(instance._ContainsText); }
public StringCollection GetFileDropList() { var instance = new ClipboardAsync(); var staThread = new Thread(instance._thGetFileDropList); staThread.SetApartmentState(ApartmentState.STA); staThread.Start(); staThread.Join(); return(instance._GetFileDropList); }