SetFileDropList() 개인적인 메소드

private SetFileDropList ( StringCollection filePaths ) : void
filePaths System.Collections.Specialized.StringCollection
리턴 void
예제 #1
0
        private void  制文件夹到剪切板_Click(object sender, EventArgs e)
        {
            StringCollection str1 = new StringCollection();

            str1.Add(filename);
            Clipboard.SetFileDropList(str1);
        }
예제 #2
0
        private void  制文件到剪切板_Click(object sender, EventArgs e)
        {
            if (listView1.SelectedIndices != null)
            {
                StringCollection str1 = new StringCollection();
                for (int i = 0; i < listView1.SelectedItems.Count; i++)
                {
                    str1.Add(listView1.SelectedItems[i].SubItems[3].Text);
                }

                Clipboard.Clear();
                Clipboard.SetFileDropList(str1);
            }
        }
예제 #3
0
        protected override void EndProcessing()
        {
            ExecuteWrite(delegate
            {
                switch (ParameterSetName)
                {
                case ParamSetFiles:
                    if (_paths.Count == 0)
                    {
                        WinFormsClipboard.Clear();
                    }
                    else
                    {
                        WinFormsClipboard.SetFileDropList(_paths);
                    }
                    break;

                case ParamSetImage:
                    if (_image == null)
                    {
                        WinFormsClipboard.Clear();
                    }
                    else
                    {
                        WinFormsClipboard.SetImage(_image);
                    }
                    break;

                case ParamSetRtf:
                    SetTextContents(_rtf, TextDataFormat.Rtf);
                    break;

                case ParamSetHtml:
                    SetTextContents(_html, TextDataFormat.Html);
                    break;

                default:
                    SetTextContents(_text, TextDataFormat.UnicodeText);
                    break;
                }
            });
        }
예제 #4
0
 public static void SetFileDropList(StringCollection filePaths)
 {
     ClipboardProxy.SetFileDropList(filePaths);
 }