C# Class Microsoft.VisualStudio.Project.DragDropHelper

显示文件 Open project: tunnelvisionlabs/MPFProj10 Class Usage Examples

Public Methods

Method Description
CopyHGlobal ( SafeGlobalAllocHandle data ) : SafeGlobalAllocHandle
CreateFormatEtc ( ushort format ) : FORMATETC
GetData ( SafeGlobalAllocHandle dropHandle ) : string

Returns the data packed after the DROPFILES structure.

GetDroppedFiles ( ushort format, Microsoft dataObject, DropDataType &ddt ) : ReadOnlyCollection

Retrives data from a VS format.

GetSourceProjectPath ( Microsoft dataObject ) : string

Private Methods

Method Description
CopyStringToHGlobal ( string s, IntPtr data, int bufferSize ) : void
GetData ( Microsoft dataObject, FORMATETC &fmtetc ) : STGMEDIUM
QueryGetData ( Microsoft dataObject, FORMATETC &fmtetc ) : int

Method Details

CopyHGlobal() public static method

public static CopyHGlobal ( SafeGlobalAllocHandle data ) : SafeGlobalAllocHandle
data SafeGlobalAllocHandle
return SafeGlobalAllocHandle

CreateFormatEtc() public static method

public static CreateFormatEtc ( ushort format ) : FORMATETC
format ushort
return FORMATETC

GetData() public static method

Returns the data packed after the DROPFILES structure.
public static GetData ( SafeGlobalAllocHandle dropHandle ) : string
dropHandle SafeGlobalAllocHandle
return string

GetDroppedFiles() public static method

Retrives data from a VS format.
public static GetDroppedFiles ( ushort format, Microsoft dataObject, DropDataType &ddt ) : ReadOnlyCollection
format ushort
dataObject Microsoft
ddt DropDataType
return ReadOnlyCollection

GetSourceProjectPath() public static method

public static GetSourceProjectPath ( Microsoft dataObject ) : string
dataObject Microsoft
return string