Vcl.ComCtrls.TListItem.WorkArea
Delphi
function WorkArea: Integer;
C++
int __fastcall WorkArea();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TListItem |
Description
Returns the work area (if any) that contains the list item.
When the list view that contains the list item organizes its client area into separate rectangular work areas, each list item is associated with a single work area. WorkArea returns the index of this work area in the list maintained by the list view's WorkAreas property. If the list view does not use work areas, WorkArea returns –1.
To change the work area of a list item, move it into a position of the list view's client area that is covered by a different work area.
Note: Work areas are not supported if the application is running in virtual mode.