标签:apt property removes items listview view htm dea 参数
1.TListView方法:
procedure Clear; override; //从列表控件中删除所有的项目
property Column[Index: Integer]: TListColumn;//通过参数 Index 指明一列
property Columns: TListColumns;//记录列表中列的属性
property Items: TListItems;//包含列表中的所有项目Contains the list of items displayed by the list view. 
2.1TListItems属性:
TListItems.Clear
procedure Clear;//从列表中移去所有的项目Removes all items from the list.
TListItems.BeginUpdate
procedure BeginUpdate;//更新列表直到EndUpdate方法被调用
TListItems.Add
function Add: TListItem;//创建一个新的项目并添加到列表中

不要忘记BeginUpdate和EndUpdate是成对出现的
2.1.1TListItem属性:
TListItem.Caption
property Caption: string;//指定列表中项目的标签Specifies the text that labels the item in the list.

property SubItems: TStrings;//作为项目列表的子项目的任何字符串Contains any strings that appear as subitems to the list item.

2.1.1.1TStrings属性
function Add(const S: string): Integer; virtual;//添加字符串到列表的末尾Adds a string at the end of the list.

3.层次关系:
TListView:
->Columns:
->Items : -->TListItems:
-->Clear:
-->BeginUpdate:
-->Add: --->TListItem: ---->Caption:
----> SubItems:-->TStrings:->Add
标签:apt property removes items listview view htm dea 参数
原文地址:http://www.cnblogs.com/michellexiaoqi/p/7451341.html