Vcl.Grids.TStringGrid.Cols
Delphi
property Cols[Index: Integer]: TStrings read GetCols write SetCols;
C++
__property System::Classes::TStrings* Cols[int Index] = {read=GetCols, write=SetCols};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Vcl.Grids.pas Vcl.Grids.hpp |
Vcl.Grids | TStringGrid |
Description
Lists strings with their associated objects for each column.
Use Cols to access all the strings for a single column, along with their associated objects. The number of strings and associated objects is always equal to the value of the RowCount property, the number of rows in the grid. The Index parameter is the number of the column, where the value of the first column in the grid is zero.
To get all the strings and objects for a row, rather than for a column, use the Rows property.