Nastane po uložení všetkých názvov stĺpcov do pracovného listu
Popis
Túto udalosť môžete použiť na použitie ďalšieho formátovania celého záhlavia
Syntax
TDBGridAfterTitles =
procedure(Sender: TObject; Range:
IXLSRange) of object;
| Sender |
TObject. Určuje komponent TGridToXLS, ktorý vyvolal udalosť |
| Range |
IXLSRange. Predstavuje rozsah, ktorý obsahuje celú hlavičku |
Príklad
This example puts the thick border around the header
procedure TForm1.GridToXLS1AfterTitles(Sender: TObject;
Range: IXLSRange);
begin
With Range.Borders do begin
Item[xlEdgeBottom].LineStyle := xlContinuous;
Item[xlEdgeBottom].Weight := xlThick;
Item[xlEdgeTop].LineStyle := xlContinuous;
Item[xlEdgeTop].Weight := xlThick;
Item[xlEdgeLeft].LineStyle := xlContinuous;
Item[xlEdgeLeft].Weight := xlThick;
Item[xlEdgeRight].LineStyle := xlContinuous;
Item[xlEdgeRight].Weight := xlThick;
end;
end;