C++ Builder 參考手冊(cè) ? TComponent ? ComponentCount
頭文件:#include <System.Classes.hpp>
命名空間:System::Classes
類(lèi):TComponent
訪(fǎng)問(wèn)權(quán)限:public:
屬性定義:
__property int ComponentCount = { read = GetComponentCount, nodefault };
System::Classes::TComponent::ComponentCount 是 System::Classes::TComponent 的屬性鞍盗,這個(gè)組件容納的子組件的個(gè)數(shù)。
- 這個(gè)組件作為容器,里面可以擁有和容納其他組件鸽照,這是擁有的組件的個(gè)數(shù)猴伶;
- 利用 Components 屬性可以把擁有的每個(gè)組件讀出來(lái)邀跃;
- 組件創(chuàng)建時(shí)坛猪,TComponent 構(gòu)造函數(shù)的參數(shù)是這個(gè)組件的擁有者 (Owner)涩搓,這個(gè)組件將添加在 Owner 的容納的組件里面污秆;
- 可以用 InsertComponent 和 RemoveComponent 增加和刪除容納的組件。
參考:
- System::Classes::TComponent::Components
- System::Classes::TComponent::ComponentIndex
- System::Classes::TComponent::ComponentState
- System::Classes::TComponent::ComponentStyle
- System::Classes::TComponent::FindComponent
- System::Classes::TComponent::InsertComponent
- System::Classes::TComponent::RemoveComponent
- System::Classes::TComponent::Owner
- System::Classes::TComponent::TComponent
- System::Classes::TComponent
- System::Classes::TPersistent
- System::TObject
- PME 架構(gòu)
- VCL 類(lèi)繼承關(guān)系
C++ Builder 參考手冊(cè) ? TComponent ? ComponentCount