Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }