VsTeXProject.VisualStudio.Project.ProjectNode.GetDropInfo C# (CSharp) Метод

GetDropInfo() публичный Метод

Returns information about one or more of the items being dragged
public GetDropInfo ( uint &pdwOKEffects, Microsoft.VisualStudio.OLE.Interop.IDataObject &ppDataObject, IDropSource &ppDropSource ) : int
pdwOKEffects uint /// Pointer to a DWORD value describing the effects displayed while the item is being dragged, /// such as cursor icons that change during the drag-and-drop operation. /// For example, if the item is dragged over an invalid target point /// (such as the item's original location), the cursor icon changes to a circle with a line through it. /// Similarly, if the item is dragged over a valid target point, the cursor icon changes to a file or folder. ///
ppDataObject Microsoft.VisualStudio.OLE.Interop.IDataObject /// Pointer to the IDataObject interface on the item being dragged. /// This data object contains the data being transferred in the drag-and-drop operation. /// If the drop occurs, then this data object (item) is incorporated into the target hierarchy or hierarchy window. ///
ppDropSource IDropSource Pointer to the IDropSource interface of the item being dragged.
Результат int
        public override int GetDropInfo(out uint pdwOKEffects, out IOleDataObject ppDataObject,
            out IDropSource ppDropSource)
        {
            //init out params
            pdwOKEffects = (uint) DropEffect.None;
            ppDataObject = null;
            ppDropSource = null;

            IOleDataObject dataObject = PackageSelectionDataObject(false);
            if (dataObject == null)
            {
                return VSConstants.E_NOTIMPL;
            }

            SourceDraggedOrCutOrCopied = true;

            pdwOKEffects = (uint) (DropEffect.Move | DropEffect.Copy);

            ppDataObject = dataObject;
            return VSConstants.S_OK;
        }
ProjectNode