다음을 통해 공유


IVsCompletionSet.GetImageList Method

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)

Syntax

‘선언
Function GetImageList ( _
    <OutAttribute> ByRef phImages As IntPtr _
) As Integer
‘사용 방법
Dim instance As IVsCompletionSet
Dim phImages As IntPtr
Dim returnValue As Integer

returnValue = instance.GetImageList(phImages)
int GetImageList(
    out IntPtr phImages
)
int GetImageList(
    [OutAttribute] IntPtr% phImages
)
abstract GetImageList : 
        phImages:IntPtr byref -> int 
function GetImageList(
    phImages : IntPtr
) : int

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.

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.

.NET Framework Security

See Also

Reference

IVsCompletionSet Interface

IVsCompletionSet Members

Microsoft.VisualStudio.TextManager.Interop Namespace