Vcl.Grids.TCustomGrid.ColWidths

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ColWidths[Index: Longint]: Integer read GetColWidths write SetColWidths;

C++

__property int ColWidths[int Index] = {read=GetColWidths, write=SetColWidths};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.Grids.pas
Vcl.Grids.hpp
Vcl.Grids TCustomGrid

Description

Indicates the width (in pixels) of all the columns in the grid.

Read ColWidths to determine the width of the cells in the column specified by the Index parameter. An index of 0 refers to the first column. Set ColWidths at runtime to change the width of an individual column.

If the width of a column has not been set explicitly by resizing with the mouse, or by using the ColWidths property, its width is DefaultColWidth.

Use the ColCount property to determine the number of entries in the ColWidths array.

See Also