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

TCustomStringGrid

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TCustomStringGrid - base class for TStringGrid

Declaration

Source position: grids.pas line 1310

type TCustomStringGrid = class(TCustomDrawGrid)

protected

  procedure AutoAdjustColumn(); override;

  

  procedure CalcCellExtent(); override;

  

  procedure DefineProperties(); override;

  

  function DoCompareCells(); override;

  

  procedure DoCopyToClipboard; override;

  

  procedure DoCutToClipboard; override;

  

  procedure DoPasteFromClipboard; override;

  

  procedure DrawCell(); override;

  

  procedure DrawCellAutonumbering(); override;

  

  function GetEditText(); override;

  

  procedure LoadContent(); override;

  

  procedure Loaded; override;

  

  procedure SaveContent(); override;

  

  procedure SelectionSetText();

  

  procedure SetEditText(); override;

  

  property Modified: Boolean; [rw]

  

public

  constructor Create(); override;

  

  destructor Destroy; override;

  

  procedure AutoSizeColumn();

  

AutoSizeColumn - automatically adjust width of column to accommodate widest text

  procedure AutoSizeColumns;

  

AutoSizeColumns - automatically resizes all columns by adjusting them to fit in the longest text in each column

  procedure Clean();

  

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

  procedure CopyToClipboard;

  

CopyToClipboard - copy the selected text to the clipboard

  property Cells: String; [rw]

  

Cells - the text content of a cell or cells, indexed by aCol, aRow

  property Cols: TStrings; [rw]

  

Cols - get or set a list of strings for column names as specified by the index

  property DefaultTextStyle;

  

  property EditorMode;

  

  property ExtendedSelect;

  

  property Objects: TObject; [rw]

  

  property Rows: TStrings; [rw]

  

Rows - gets or sets a list of strings for row names as specified by index

  property UseXORFeatures;

  

end;

Inheritance

TCustomStringGrid

  

TCustomStringGrid - base class for TStringGrid

|

TCustomDrawGrid

  

TCustomDrawGrid - Base Class for drawn grids including TDrawGrid and TStringGrid

|

TCustomGrid

  

TCustomGrid - the base class for all grid controls

|

TCustomControl

  

TCustomControl - a base class for many window controls

|

TWinControl

  

The base class for all windowed controls

|

TControl

  

TControl - the main ancestor class for visual controls.

|

TLCLComponent

?

TObject

See also

HowToUseGrids

  

How to use Grids including StringGrids, DrawGrids and DbGrids

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