[Overview][Types][Classes][Index] Reference for unit 'ImgList' (#lcl)

TCustomImageList.CheckIndex

Assures that Index is not out of the list bound.

Declaration

Source position: imglist.pp line 146

protected procedure TCustomImageList.CheckIndex(

  AIndex: Integer;

  AForInsert: Boolean = False

);

Arguments

AIndex

  

The index to check.

AForInsert

  

Set to True when the index is used for insertion (default is False).

Errors

Raises an EInvalidOperation exception when the index is out of bounds.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.