Vcl.Grids.TStringGrid.Cols

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

Delphi

property Cols[Index: Integer]: TStrings read GetCols write SetCols;

C++

__property System::Classes::TStrings* Cols[int Index] = {read=GetCols, write=SetCols};

プロパティ

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

説明

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

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

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

関連項目