System.Classes.TStrings.AddStrings

提供:RAD Studio API Documentation

Delphi

procedure AddStrings(Strings: TStrings); overload; virtual;
procedure AddStrings(const Strings: array of string); overload;
procedure AddStrings(const Strings: array of string; const Objects: array of TObject); overload;

C++

virtual void __fastcall AddStrings(TStrings* Strings)/* overload */;
void __fastcall AddStrings(const System::UnicodeString *Strings, const System::NativeInt Strings_High);
void __fastcall AddStrings(const System::DynamicArray<System::UnicodeString> Strings) {
void __fastcall AddStrings(const System::UnicodeString *Strings, const System::NativeInt Strings_High,
                 System::TObject* const *Objects, const System::NativeInt Objects_High);
void __fastcall AddStrings(const System::DynamicArray<System::UnicodeString> Strings,
                 const System::DynamicArray<System::TObject*> Objects) {

プロパティ

種類 可視性 ソース ユニット 親
procedure
function
public
System.Classes.pas
System.Classes.hpp
System.Classes TStrings


説明

指定された文字列(とオブジェクト)を、現在の TStrings オブジェクトに追加します。

TStrings 型の Strings パラメータを持つ AddStrings は、文字列と Strings オブジェクトからの関連オブジェクトを、現在の TStrings オブジェクト内の文字列リストの最後に追記します。

文字列の配列を表す Strings パラメータを持つ AddStrings は、Strings 配列からの文字列を、現在の TStrings オブジェクト内の文字列リストの最後に追記します。

2 つパラメータを持つ AddStrings は、Strings 配列からの文字列を、現在の TStrings オブジェクト内の文字列リストの最後に追記し、 Objects からのオブジェクトへの参照を、それらの文字列を関連付けます(Strings と Objects の配列には、同じ数が存在する)。Strings 内の文字列の番号が、Objects 内のオブジェクトの番号と同じでない場合、例外が発生します。

関連項目

コード サンプル