System.Classes.TStringList.AddStrings
Delphi
procedure AddStrings(Strings: TStrings); override;
C++
virtual void __fastcall AddStrings(TStrings* Strings)/* overload */;
void __fastcall AddStrings(const System::DynamicArray<System::UnicodeString> Strings) {
void __fastcall AddStrings(const System::DynamicArray<System::UnicodeString> Strings,
const System::DynamicArray<System::TObject*> Objects) {
inline void __fastcall AddStrings(const System::UnicodeString *Strings, const System::NativeInt Strings_High){ TStrings::AddStrings(Strings, Strings_High); }
inline void __fastcall AddStrings(const System::UnicodeString *Strings, const System::NativeInt Strings_High, System::TObject* const *Objects, const System::NativeInt Objects_High){ TStrings::AddStrings(Strings, Strings_High, Objects, Objects_High); }
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure function |
public | System.Classes.pas System.Classes.hpp |
System.Classes | TStringList |
説明
指定された文字列(とオブジェクト)を、現在の TStrings オブジェクトに追加します。
System.Classes.TStringList.AddStrings は System.Classes.TStrings.AddStrings を継承しています。以下の内容はすべて System.Classes.TStrings.AddStrings を参照しています。
指定された文字列(とオブジェクト)を、現在の TStrings オブジェクトに追加します。
TStrings 型の Strings
パラメータを持つ AddStrings は、文字列と Strings
オブジェクトからの関連オブジェクトを、現在の TStrings オブジェクト内の文字列リストの最後に追記します。
文字列の配列を表す Strings
パラメータを持つ AddStrings は、Strings
配列からの文字列を、現在の TStrings オブジェクト内の文字列リストの最後に追記します。
2 つパラメータを持つ AddStrings は、Strings
配列からの文字列を、現在の TStrings オブジェクト内の文字列リストの最後に追記し、 Objects
からのオブジェクトへの参照を、それらの文字列を関連付けます(Strings
と Objects
の配列には、同じ数が存在する)。Strings
内の文字列の番号が、Objects
内のオブジェクトの番号と同じでない場合、例外が発生します。
関連項目
- System.Classes.TStrings.Add
- System.Classes.TStrings.AddObject
- System.Classes.TStrings.Assign
- System.Classes.TStrings.Count
- System.Classes.TStrings.Objects