示例#1
0
        protected void OnCopy()
        {
            string data = widget.GetSelectedText();

            if (data == null)
            {
                return;
            }

            CopyToClipboard(data);
        }
示例#2
0
        protected void OnCopy()
        {
            string data = widget.GetSelectedText();

            if (data == null)
            {
                return;
            }

            var clipboard = Clipboard.Get(Gdk.Atom.Intern("CLIPBOARD", false));

            clipboard.Text = data;
            clipboard      = Clipboard.Get(Gdk.Atom.Intern("PRIMARY", false));
            clipboard.Text = data;
        }