Bagikan melalui


IVsToolbox5.GetItemBitmap Method

Gets a copy of the bitmap for the specified item. The caller is responsible for freeing the bitmap using DeleteObject() or its equivalent.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

Syntax

'Declaration
Function GetItemBitmap ( _
    pDataObject As IDataObject, _
    <OutAttribute> ByRef pBitmap As IntPtr _
) As Integer
int GetItemBitmap(
    IDataObject pDataObject,
    out IntPtr pBitmap
)
int GetItemBitmap(
    [InAttribute] IDataObject^ pDataObject, 
    [OutAttribute] IntPtr% pBitmap
)
abstract GetItemBitmap : 
        pDataObject:IDataObject * 
        pBitmap:IntPtr byref -> int 
function GetItemBitmap(
    pDataObject : IDataObject, 
    pBitmap : IntPtr
) : int

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

.NET Framework Security

See Also

Reference

IVsToolbox5 Interface

Microsoft.VisualStudio.Shell.Interop Namespace