מתרחש לאחר שכל כותרות העמודות נשמרות לגיליון העבודה
תיאור
ניתן להשתמש באירוע זה להחלת עיצוב נוסף על כל הכותרת
תחביר
TAfterTitles =
procedure(Sender: TObject; Range:
IXLSRange) of object;
| Sender |
TObject. מציין the TDataToXLS component that triggered the אירוע |
| Range |
IXLSRange. מייצג a טווח which contains the whole 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;