[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Grids' (#lcl)

# varCellpadding

Default padding for the content in grid cells.

## Declaration

Source position: grids.pas line 200

`var varCellpadding: Byte;`

## Description

Cell padding is the amount of space added around cell values and hints drawn for a grid control. The value represents the number of pixels added to the boundaries at the default display density (96 PPI). The value may be scaled and stored in the varCellPadding variable when a new instance of a grid control is created. varCellPadding contains the padding value actually applied to the values and hints in the control.

## See also

varCellPadding |  | Default padding for the content in grid cells.
TCustomGrid.Create |  | Constructor for the class instance.
TCustomGrid.ShowCellHintWindow |  | Gets and displays the cell hint(s) for the current cell in the grid.
TCustomGrid.DrawCellText |  | Draws the specified text in the given text rectangle.
TCustomGrid.DrawGridCheckboxBitmaps |  | Draws a check box bitmap which represents the given state in a cell.
TCustomStringGrid.AutoAdjustColumn |  | Adjusts the column size for the font, text length, and images used in the specified column.