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

TCustomListBox.ItemHeight

The default height for an item displayed in the list.

Declaration

Source position: stdctrls.pp line 644

public property TCustomListBox.ItemHeight : Integer
  read GetItemHeight
  write SetItemHeight;

Description

ItemHeight is an Integer property which contains the default height for an item displayed in the list box control. For a list box using the lbStandardStyle, the property value is derived using the dimensions in the ItemRect for the item stored at TopIndex. For other styles, the stored property`value is used. Setting a new value for the property causes the RecreateWnd method to be called when a handle has been allocated for the control.

See also

TCustomListBox.ItemRect

  

Returns the client rectangle for an item (including scrollbar area).

TCustomListBox.TopIndex

  

Index of the first visible (or top-most) item.

TCustomListBox.CalculateStandardItemHeight

  

Determines the standard Height of the items, when the widget has yet been created.


Version 3.2 Generated 2024-02-25 Home