This document is archived and information here might be outdated.  Recommended version.


IMultiItem.ItemBitmap Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > SystemUI > ESRI.ArcGIS.SystemUI > Interfaces > IM > IMultiItem Interface > IMultiItem.ItemBitmap Property
ArcGIS Developer Help

IMultiItem.ItemBitmap Property

The bitmap for the item at the specified index.

[Visual Basic .NET]
Public Function get_ItemBitmap ( _
    ByVal index As Integer _
) As Integer
[C#]
public int get_ItemBitmap (
    int index
);
[C++]
HRESULT get_ItemBitmap(
  long index,
  OLE_HANDLE* Bitmap
);
[C++]
Parameters
index [in]

index is a parameter of type long Bitmap [out, retval]
Bitmap is a parameter of type OLE_HANDLE*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Index specifies the index of the current item on the multiItem.

Remarks

When implementing IMultiItem to create a custom multiItem, use the ItemBitmap property to set the bitmaps to be used as the icons on the items in this multiItem.

You must use a Bitmap file (.bmp) for the ItemBitmap property; Icon files (.ico) are not supported. Bitmap files should be 16 X 16 pixels. The color of the upper left pixel of the bitmap is treated as the transparent color. For example, if the upper left pixel of the bitmap is red, then all of the red pixels in the bitmap will be converted to transparent.

See Also

IMultiItem Interface