SetImage() public static method

public static SetImage ( Image image ) : void
image Image
return void
示例#1
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;
                }
            });
        }
示例#2
0
 public static void SetImage(Image image)
 {
     ClipboardProxy.SetImage(image);
 }