BrightIdeasSoftware.ObjectListView.CopyObjectsToClipboard C# (CSharp) Method

CopyObjectsToClipboard() public method

Copy a text and html representation of the given objects onto the clipboard.
public CopyObjectsToClipboard ( IList objectsToCopy ) : void
objectsToCopy IList
return void
        public virtual void CopyObjectsToClipboard(IList objectsToCopy)
        {
            if (objectsToCopy.Count == 0)
                return;

            // We don't know where these objects came from, so we can't use the DragSource to create
            // the data object, like we do with CopySelectionToClipboard() above.
            OLVDataObject dataObject = new OLVDataObject(this, objectsToCopy);
            dataObject.CreateTextFormats();
            Clipboard.SetDataObject(dataObject);
        }
ObjectListView