VsTeXProject.VisualStudio.Project.ProjectNode.OnPaste C# (CSharp) Method

OnPaste() public method

Called after your cut/copied items has been pasted
public OnPaste ( int wasCut, uint dropEffect ) : int
wasCut int /// If true, then the IDataObject has been successfully pasted into a target hierarchy. /// If false, then the cut or copy operation was cancelled. ///
dropEffect uint /// Visual effects associated with the drag and drop operation, such as cursors, bitmaps, and so on. /// These should be the same visual effects used in OnDropNotify ///
return int
        public virtual int OnPaste(int wasCut, uint dropEffect)
        {
            if (!SourceDraggedOrCutOrCopied)
            {
                return VSConstants.S_FALSE;
            }

            if (dropEffect == (uint) DropEffect.None)
            {
                return OnClear(wasCut);
            }

            CleanupSelectionDataObject(false, wasCut != 0, dropEffect == (uint) DropEffect.Move);
            SourceDraggedOrCutOrCopied = false;
            return VSConstants.S_OK;
        }
ProjectNode