Vcl.Grids.TStringGrid.Rows

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

Delphi

property Rows[Index: Integer]: TStrings read GetRows write SetRows;

C++

__property System::Classes::TStrings* Rows[int Index] = {read=GetRows, write=SetRows};

プロパティ

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

説明

各行の文字列とそれに関連付けられたオブジェクトのリストを表示します。

Rows プロパティを使用すると,1 行のすべての文字列とそれに関連付けられたオブジェクトにアクセスできます。文字列とそれに関連付けられたオブジェクトの数は常に ColCount プロパティの値,つまりグリッド内の列数と同じです。Index パラメータは行の番号ですが,グリッド内の最初の行の値はゼロになります。

1 行ではなく 1 列のすべての文字列とオブジェクトを取得するには,Cols プロパティを使用します。

関連項目

コード サンプル