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

TCustomListBox.ItemRect

Returns the client area of an item (including scrolling).

Declaration

Source position: stdctrls.pp line 577

public function TCustomListBox.ItemRect(

  Index: Integer

):TRect;

Arguments

Index

  

The tentative item index.

Function result

The item area; all zeroes for an invalid item index.

Description

Only an index from 0 to ItemCount is considered valid, i.e. the result is valid also for the next item, that will be added subsequently.

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