Compartir a través de


IVsTaskItem.ImageListIndex(Int32) Method

Definition

Returns the index into the image list maintained by a provider.

public:
 int ImageListIndex([Runtime::InteropServices::Out] int % pIndex);
int ImageListIndex([Runtime::InteropServices::Out] int & pIndex);
public int ImageListIndex (out int pIndex);
abstract member ImageListIndex : int -> int
Public Function ImageListIndex (ByRef pIndex As Integer) As Integer

Parameters

pIndex
Int32

[out, retval] Pointer to the index into the image list.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsTaskItem::ImageListIndex(  
   [out,retval] long *pIndex  
);  

If you have provided a custom image list to represent a category or subcategory, return the correct index into it. Each task provider can provide one image list using the ImageList. Each task item can then specify an image into this list using the ImageListIndex method. Otherwise, return one of the _vstaskbitmap enumerators to use one of the default bitmaps.

Applies to