packages/Windows API Code Pack 1.1/source/WindowsAPICodePack/Shell/Common/ShellObjectCollection.cs
/// <summary>
/// Creates a ShellObjectCollection from an IDataObject passed during Drop operation.
/// </summary>
/// <param name="dataObject">An object that implements the IDataObject COM interface.</param>
/// <returns>ShellObjectCollection created from the given IDataObject</returns>
Creates a ShellObjectCollection from an IDataObject passed during Drop operation.
Creates a ShellObjectCollection from an IDataObject passed during Drop operation .
public static ShellObjectCollection FromDataObject(System.Runtime.InteropServices.ComTypes.IDataObject dataObject)
        {
            IShellItemArray shellItemArray;
            Guid iid = new Guid(ShellIIDGuid.IShellItemArray);
            ShellNativeMethods.SHCreateShellItemArrayFromDataObject(dataObject, ref iid, out shellItemArray);
            return new ShellObjectCollection(shellItemArray, true);
        }
public static ShellObjectCollection FromDataObject ( System . Runtime . InteropServices . ComTypes . IDataObject dataObject ) { IShellItemArray shellItemArray ; Guid iid = new Guid ( ShellIIDGuid . IShellItemArray ) ; ShellNativeMethods . SHCreateShellItemArrayFromDataObject ( dataObject , ref iid , out shellItemArray ) ; return new ShellObjectCollection ( shellItemArray , true ) ; }
Creates a ShellObjectCollection from an IDataObject passed during Drop operation.
Creates a ShellObjectCollection from an IDataObject passed during Drop operation .
ShellObjectCollection created from the given IDataObject
ShellObjectCollection created from the given IDataObject
dataObject
System.Runtime.InteropServices.ComTypes.IDataObject
An object that implements the IDataObject COM interface.
An object that implements the IDataObject COM interface .