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

# TCustomImageList.MarkAsChanged

Sets the value in the internal Changed flag to True.

## Declaration

Source position: imglist.pp line 317

`protected procedure TCustomImageList.MarkAsChanged;`

## Description

MarkAsChanged allows an application to set the value for the internal member which tracks whether the image list has been modified. When enabled, the Change method performs change notifications for subscribers and signals the OnChange event handler (when assigned) when the EndUpdate method is called.

MarkAsChanged sets the value for the internal member to True. This update normally occurs in methods like Clear, Delete, Move, ReadData, ReadAdvData, and when the value in BkColor is changed. MarkAsChanged allows descendent classes to set the flag value from any methods added to the class or from application code.

## Version info

Added in LCL version 3.0.

## See also

TCustomImageList.BeginUpdate |  | Starts an update to the image list, and controls execution of the OnChange event.
TCustomImageList.EndUpdate |  | Finishes an update to the image list, and calls Change.
TCustomImageList.BkColor |  | Specifies the background color used for transparent parts of images.
TCustomImageList.Change |  | Sends change notifications when the image list is updated.
TCustomImageList.Clear |  | Removes all images store in the image list.
TCustomImageList.Delete |  | Deletes the image at the specified position from all image resolutions.
TCustomImageList.Move |  | Moves an image from the position at CurIndex to NewIndex.
TCustomImageList.OnChange |  | Event handler signalled when the image list is changed.
TCustomImageList.ReadAdvData |  | Reads the image content for multiple resolutions from a stream.
TCustomImageList.ReadData |  | Reads image data for the default resolution from a stream.
TChangeLink.Change |  | Signals the OnChange event handler.
TChangeLink.OnChange |  | Event handler signalled for a change in the image list.