From RAD Studio API Documentation
Jump to: navigation, search


property ImageIndex: TImageIndex read FImageIndex write SetImageIndex default -1;


__property ImageIndex = {default=-1};


Type Visibility Source Unit Parent
property published
FMX.Media TMediaPlayerValue


Index in a list of images of the image that represents your action.

ImageIndex is an index in a list of images stored in the Images property of the action list that contains your action. ImageIndex is zero-based.

Note: When ImageIndex is -1, this means that the list does not contain any images. In typical implementations of controls, an image is drawn at the leftmost position in the control, and a text of the control is drawn to the right of the image. If ImageIndex is -1, then a control does not offset the text to the right to reserve a placeholder for the image. Otherwise, if ImageIndex is not -1, then the text of the control is always drawn with the offset to the right to reserve a place for drawing an image.

See Also