IVsCompletionSet::GetImageList Method (IntPtr)

 

Returns the list of images (glyphs) supported by the completion set.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

int GetImageList(
	[OutAttribute] IntPtr% phImages
)

Parameters

phImages
Type: System::IntPtr

[out] Returns a handle to the image list associated with the completion set.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From textmgr.idl:

HRESULT IVsCompletionSet::GetImageList(
   [out] HANDLE *phImages
);

This method returns the entire list (as represented by a handle to an image list) of images supported by a completion set. To specify which image is associated with a particular completion set item, return the appropriate image number for the piGlyph parameter in GetDisplayText.

In managed code, the image list is typically contained in an instance of ImageList and the handle can be obtained by accessing the Handle property.

Return to top
Show: