다음을 통해 공유


IVsCompletionSet.GetImageList(IntPtr) Method

Definition

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

public:
 int GetImageList([Runtime::InteropServices::Out] IntPtr % phImages);
public int GetImageList (out IntPtr phImages);
abstract member GetImageList : nativeint -> int
Public Function GetImageList (ByRef phImages As IntPtr) As Integer

Parameters

phImages
IntPtr

nativeint

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

Returns

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

Remarks

COM Signature

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.

Applies to