示例#1
0
 public static void SetText(string value)
 {
     ThreadExt.RunSTA(() => {
         Clipboard.SetText(value, TextDataFormat.UnicodeText);
         return(0);
     }, 6000);
 }
示例#2
0
 public static void SetImage(Bitmap value)
 {
     ThreadExt.RunSTA(() => {
         Clipboard.SetImage(value);
         return(0);
     }, 6000);
 }
示例#3
0
        public static string GetText()
        {
            string result = ThreadExt.RunSTA(() => {
                string text = Clipboard.GetText();
                return(text);
            }, 6000);

            return(result);
        }