Vcl.StdCtrls.TCustomListBox.DoGetData

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DoGetData(const Index: Integer): String;

C++

System::UnicodeString __fastcall DoGetData(const int Index);

Properties

Type Visibility Source Unit Parent
function protected
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TCustomListBox

Description

Returns a string in the list box given its index.

This protected method is called automatically when a virtual list box needs to supply the text of an item. DoGetData is never called unless the list box is virtual (that is, unless the value of the Style property is lbVirtual or lbVirtualOwnerDraw).

DoGetData generates an OnData event and returns the string that is supplied dynamically by the event handler.

See Also