Dokumentacija HotXLS Sadržaj Početna Pregled TGridToXLS IXLSWorkbook Početna Sadržaj Pregled

AfterTitles događaj

Occurs on all column titles are saved into Worksheet

Opis

You can use this event to apply additional formatting to the whole header

Sintaksa

TDBGridAfterTitles = procedure(Sender: TObject; Range: IXLSRange) of object; Sender TObject. Određuje the TGridToXLS component that triggered the event Range IXLSRange. Predstavlja a range which contains the whole header

Primer

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; Copyright © 2010-2026 losLab Software