[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Menus' (#lcl)

# TMenuItem.ImageIndex

Ordinal position in the list of images for the glyph displayed on the menu item.

## Declaration

Source position: menus.pp line 338

`published property TMenuItem.ImageIndex : TImageIndex read FImageIndex write SetImageIndex stored IsImageIndexStored default - 1;`

## Description

ImageIndex refers to the position in the images for the parent of the menu item. This can be the Images property in TMenu, or the SubMenuImages property in a parent menu item.

Remark: | Use of Checked and an assigned image using ImageIndex are mutually exclusive on the Windows platform. At run-time, an image assigned using ImageIndex takes precedence and the check mark (radio button) is not drawn.

## See also

TMenu.Images |  | The image list with bitmaps used as glyphs for the menu items.
TMenuItem.SubMenuImages |  | SubMenuImages indicates if images are shown for sub-menu items as well as the main item.
TMenuItem.Checked |  | Indicates whether a check mark is displayed beside the menu item.