Dokumentacja HotXLS

Zdarzenie AfterTitles

Następuje po zapisaniu wszystkich tytułów kolumn do arkusza

Opis

To zdarzenie może służyć do zastosowania dodatkowego formatowania do całego nagłówka

Przykład

TAfterTitles = procedure(Sender: TObject; Range: IXLSRange) of object;
Sender TObject. Określa TDataToXLS komponent że triggered zdarzenie
Range IXLSRange. Reprezentuje zakres zawierający cały nagłówek

Przykład

This example puts the thick border around the header
procedure TForm1.DataToXLS1AfterTitles(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;