Beispiel #1
0
        public void Paste(string text)
        {
            var thread = new Thread(() => Clipboard.SetText(text));

            thread.SetApartmentState(ApartmentState.STA);
            thread.Start();
            thread.Join();

            _editorInProc.Paste();
        }