System.WideStrings.TWideStringList.Insert
Delphi
procedure Insert(Index: Integer; const S: WideString); override;
C++
virtual void __fastcall Insert(int Index, const System::WideString S);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure function |
public | System.WideStrings.pas System.WideStrings.hpp |
System.WideStrings | TWideStringList |
説明
リストの Index で指定した位置に、文字列を挿入します。
リストの Index で指定した位置に、文字列 S を追加するには、Insert を呼び出します。 Index が 0 の場合は、文字列はリストの先頭に挿入されます。 Index が 1 の場合は、文字列はリストの 2 番目の位置に挿入されます。以降も同様です。
文字列に関連付けられたオブジェクトがある場合は、代わりに、InsertObject メソッドを使用します。
メモ: リストがソートされている場合に、Insert または InsertObject を呼び出すと、EListError 例外が発生します。 ソート リストには、Add または AddObject を使用します。