RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DBWeb.THTMLFormatCellEvent Type

THTMLFormatCellEvent is the type of event handlers that customize the appearance of cells in an HTML table.

Pascal
THTMLFormatCellEvent = procedure (Sender: TObject; CellRow, CellColumn: Integer; var BgColor: THTMLBgColor; var Align: THTMLAlign; var VAlign: THTMLVAlign; var CustomAttrs, CellData: string) of object;
C++
(Sender: TObject; CellRow, CellColumn: Integer; var BgColor: THTMLBgColor; var Align: THTMLAlign; var VAlign: THTMLVAlign; var CustomAttrs, CellData: string) ( THTMLFormatCellEvent)();

Sender is the producer component that is generating the HTML table. 

CellRow and CellColumn specify the cell that is about to be generated, where the table header is CellRow 0, and the first column is CellColumn 0. 

BgColor, Align, VAlign, and CustomAttrs represent the default display properties for the cell, taken from the THTMLTableColumn object for the column in which the cell appears. See the corresponding entries for these properties of the THTMLTableColumn object for more information on these values. 

CellData is the text that appears in the cell.  

The event handler can change any or all of these values to specify the way the cell should appear in the final HTML table. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!