免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
容器集合之TCollection 和 TCollectionItem
TCollection繼承于: TObject--TPersistent, 存儲TCollectionItem對象的容器.
TCollectionItem繼承于: TObject--TPersistent, 表示集合中一個Item.
他們的子類具有對應(yīng)的關(guān)系,如下圖所示:
集合類(Tcollection)對應(yīng)的Item類(TCollectionItem)相關(guān)的組件Component
TAggregatesTAggregateTClientDataSet
TCookieCollectionTCookieTWebResponse
TCoolBandsTCoolBandTCoolBar
TDBGridColumnsTColumnTDBGrid
TDependenciesTDependencyTService
TDisplayDimsTDisplayDimTDecisionGrid
TFieldDefsTFieldDefTDataSet
THeaderSectionsTHeaderSectionTHeaderControl
TIndexDefsTIndexDefTTable
TListColumnsTListColumnTListView
TParamsTParammany datasets
TStatusPanelsTStatusPanelTStatusBar
TWorkAreasTWorkAreaTListView
(一) TCollection
屬性:
1. property Count: Integer;
Item 的個數(shù); 只讀;
2. property ItemClass: TCollectionItemClass;
Item所屬的類; 只讀;
type TCollectionItemClass = class of TCollectionItem;
3. property Items[Index: Integer]: TCollectionItem;
按索引檢索對應(yīng)的 Item.
4. property NextID: Integer;
下一個將要加入集合中的Item的唯一ID; 只讀;
5. property PropName: string;
屬性名.
6. property UpdateCount: Integer;
調(diào)用了 BeginUpdate 而沒有對應(yīng)的調(diào)用 EndUpdate 的次數(shù);只讀;
方法:
1. function Add: TCollectionItem;
創(chuàng)建一個TCollectionItem實例并加入集合中.
2. procedure Assign(Source: TPersistent); override;
拷貝給另一份集合.
3. procedure BeginUpdate; virtual;
暫停屏幕刷新(加速處理,并避免增減Item時屏幕閃爍),直到 EndUpdate方法調(diào)用; 虛方法;
4. procedure Changed; Protected
在EndUpadte之后自動執(zhí)行,以檢查和更新字段內(nèi)容.
5. procedure Clear;
刪除所有的項;
6. procedure Delete(Index: Integer);
刪除指定索引的 Item.
7. procedure EndUpdate; virtual;
重新屏幕刷新;
8. function FindItemID(ID: Integer): TCollectionItem;
根據(jù)ID檢索對應(yīng)的 Item.
9. function GetNamePath: string; override;
返回設(shè)計時使用的名字;
10. function Insert(Index: Integer): TCollectionItem;
插入1個 Item.
11. function Owner: TPersistent;
返回集合的操作者;
12. procedure SetItem(Index:Integer; Value: TCollectionItem);
copy 實例到 Index對應(yīng)的Item中;
13. procedure Update(Item: TCollectionItem); virtual;
自動調(diào)用更新;
(二) TCollectionItem
屬性:
1. property Collection: TCollection;
存放Item 的容器;
2. property DisplayName: string;
集合編輯器的名字;
3. property ID: Integer;
Item的 唯一 ID.
4. property Index: Integer;
Item在容器中的索引號.
方法:
1. function GetDisplayName: string; virtual;
返回集合編輯器的名稱;
2. function GetOwner: TPersistent; override;
返回Item所屬的集合;
本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊舉報
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
〖轉(zhuǎn)載〗FastScript腳本使用白皮書(Ver1.0)
在Delphi中實現(xiàn)VFP6的查詢速度 - Delphi - 文檔中心 - 源碼天空
ibatis調(diào)用oracle的函數(shù),存儲過程的方法 IN 和OUT /游標(biāo)
奇技淫巧之Delphi和JavaScript互通 | 武稀松(wr960204)的博客
delphi 萬年歷
Delphi與Excel的親密接觸--Lark工作室
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服