TiImageDisplay.ImageIndex

TiImageDisplay

Specifies which image to display from the list of loaded images.

property ImageIndex : Integer;

Description

Use ImageIndex to get or set which image is displayed from the list of loaded images. The component's built-in image list is zero-based; the first image is indexed by 0, the second by 1, and so forth. For example, if ImageIndex = 2, the third image in the list is shown.

Example

Delphi

iComponent.ImageIndex := 2; //Displays the third image in the list

C++ Builder

iComponent->ImageIndex = 2; //Displays the third image in the list

Note: Index is zero based.

Contents | Index | Previous | Next