Sign in Join
FPDoc Onlineexperiment

TVirtualGrid class

In unit Grids

Implements a grid with metadata where rows and columns are stored as Pointer arrays.

Declaration

pascal
TVirtualGrid = class

Description

TVirtualGrid is a class used to represent a grid where the rows and columns containing grid metadata are stored as arrays of Pointers. Data stored in the grid includes the Size for data in a cell, and pointers to attributes for fixed and normal cell display.

TVirtualGrid is the type used for an internal member in TCustomDrawGrid.

See also

Properties

ColCountpublicNumber of columns defined for the grid.
RowCountpublicNumber of rows defined for the grid.
CeldapublicProvides indexed access to cell properties by their column and row numbers.
ColspublicProvides indexed access to column properties by their ordinal column number.
RowspublicProvides indexed access to row properties by their ordinal row number.

Methods

doDestroyItemprotectedDestroys an Item at the given Row and Column location.
doNewItemprotectedCreates a new item at the location specified by Col and Row.
DeleteColRowprotectedRemoves a column or a row in the grid.
MoveColRowprotectedMoves a column or a row using the specified index positions.
ExchangeColRowprotectedExchanges values for the current column or row with those at the specified position.
InsertColRowprotectedInserts either a column or a row at the specified index position.
DisposeCellprotectedDisposes of the resources and the pointer for the given cell.
DisposeColRowprotectedDisposes of the specified row or column, and frees its pointer.
IsColumnIndexValidprotectedIndicates if the specified ordinal column number is valid for the grid.
IsRowIndexValidprotectedIndicates if the specified ordinal row number is valid for the grid.
CreatepublicConstructor for the class instance.
DestroypublicDestructor for the class instance.
ClearpublicClears the content in the virtual grid.
GetDefaultCellpublicGets the default values for a new cell added to the grid.
GetDefaultColRowpublicGets a pointer to the default values used in the column and row properties when added to the instance.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.