void OnGUI()
 {
     text = GUILayout.TextField(text, GUILayout.Width(500), GUILayout.Height(100));
     if (GUILayout.Button("SetValue", GUILayout.Width(500), GUILayout.Height(100)))
     {
         BlankOperationClipboard.SetValue(text);
     }
     if (GUILayout.Button("GetValue", GUILayout.Width(500), GUILayout.Height(100)))
     {
         result = BlankOperationClipboard.GetValue();
     }
     GUILayout.Label(result);
 }
Пример #2
0
 //---------------------------------------------------------------------
 // 从剪切板中获取拷贝的text
 public string GetClipBoard()
 {
     return(BlankOperationClipboard.GetValue());
 }
Пример #3
0
 //---------------------------------------------------------------------
 // 拷贝text到剪切板
 public void SetClipBoard(string text)
 {
     BlankOperationClipboard.SetValue(text);
 }