System.Classes.TCollection.SetItem

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

procedure SetItem(Index: Integer; Value: TCollectionItem);

C++

void __fastcall SetItem(int Index, TCollectionItem* Value);

プロパティ

種類 可視性 ソース ユニット
procedure
function
protected
System.Classes.pas
System.Classes.hpp
System.Classes TCollection

説明

コレクション内の指定された項目に別の項目のプロパティをコピーします。

SetItem メソッドは,Items プロパティの書き込み専用のプロテクトメソッドです。これは Index で指定された項目の Assign メソッドを呼び出すので,Value で指定された項目のプロパティがその項目にコピーされます。

関連項目