IMenuItem.ImageIndex

Syntax

ImageIndex: Integer;

Description

The ImageIndex property determines index of the image that is displayed in the menu item.

Comments

The -1 value corresponds to the absence of image. The ImageList component is a source of images. Name of this component is specified as the value of the Images property of the parent menu (the MainMenu and PopupMenu components).

If the menu item uses the Action object, the value of the ImageIndex property of the menu item is determined automatically by the value of the ImageIndex property of the Action object.

See also:

IMenuItem