public string GetText(TextDataFormat format) { var instance = new ThreadedClipboardUtility(); var staThread = new Thread(instance.ThreadedGetText); staThread.SetApartmentState(ApartmentState.STA); staThread.Start(format); staThread.Join(); return(instance._getTextResult); }
public bool ContainsText(object format) { var instance = new ThreadedClipboardUtility(); var staThread = new Thread(instance.ThreadedContainsFileDropList); staThread.SetApartmentState(ApartmentState.STA); staThread.Start(format); staThread.Join(); return(instance._containsTextResult); }
public StringCollection GetFileDropList() { var instance = new ThreadedClipboardUtility(); var staThread = new Thread(instance.ThreadedGetFileDropList); staThread.SetApartmentState(ApartmentState.STA); staThread.Start(); staThread.Join(); return(instance._getFileDropListResult); }