Vcl.Grids.TStringGridStrings.Add

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

Delphi

function Add(const S: string): Integer; override;

C++

virtual int __fastcall Add(const System::UnicodeString S);

プロパティ

種類 可視性 ソース ユニット
function public
Vcl.Grids.pas
Vcl.Grids.hpp
Vcl.Grids TStringGridStrings

説明

最初の空の文字列を指定した文字列に置換します。

Add メソッドを呼び出すと,リストに文字列を追加できます。Add は,リスト内で空の文字列を探し,それを S に置換します。次に,S をリストに追加した場所のインデックスを返します。リスト内に空の文字列がない場合,Add は,リストに S を追加せずに,-1 を返します。

関連項目