Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
        public StringCollection GetFileDropList()
        {
            var instance  = new ThreadedClipboardUtility();
            var staThread = new Thread(instance.ThreadedGetFileDropList);

            staThread.SetApartmentState(ApartmentState.STA);
            staThread.Start();
            staThread.Join();
            return(instance._getFileDropListResult);
        }