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

# TCustomStringGrid.Clean

Clean all cells in the grid subject to the given CleanOptions, optionally specifying a range of cells or a rectangular region.

## Declaration

Source position: line 0

`public procedure TCustomStringGrid.Clean; overload; procedure TCustomStringGrid.Clean(`
`CleanOptions: TGridZoneSet`
`); overload; procedure TCustomStringGrid.Clean(`
`aRect: TRect;`
`CleanOptions: TGridZoneSet`
`); overload; procedure TCustomStringGrid.Clean(`
`StartCol: Integer;`
`StartRow: Integer;`
`EndCol: Integer;`
`EndRow: Integer;`
`CleanOptions: TGridZoneSet`
`); overload;`

## Description

Cleans all cells in the grid subject to the given CleanOptions, optionally specifying a range of cells or a rectangular region. See TGridZoneSet for more information.

Some examples:

- Clean all cells: grid.Clean([]); (the same as grid.clean)
- Clean all non fixed cells: grid.Clean([gzNormal]);
- Clean all cells but don't touch grid column headers: Grid.Clean([gzNormal, gzFixedRows]);

The latest version of this document can be found at lazarus-ccr.sourceforge.net .