API:System.Classes.TOwnedCollection.Create
Delphi
constructor Create(AOwner: TPersistent; ItemClass: TCollectionItemClass);
C++
__fastcall TOwnedCollection(TPersistent* AOwner, TCollectionItemClass ItemClass);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
constructor | public | System.Classes.pas System.Classes.hpp |
System.Classes | TOwnedCollection |
説明
Create は,コレクションを作成および初期化します。
System.Classes.TOwnedCollection.Create は System.Classes.TCollection.Create を継承しています。以下の内容はすべて System.Classes.TCollection.Create を参照しています。
Create は,コレクションを作成および初期化します。
Create メソッドを呼び出すと,実行時に TCollection オブジェクトをインスタンス化できます。通常,TCollection の下位オブジェクトは,コレクションを使ってプロパティを実装するコンポーネントにより作成されます。
ItemClass
は,コレクション内の項目を表すために必要な TCollectionItem の下位オブジェクトを識別します。Add メソッドはこのクラスを使用して,適切な型の項目を作成します。