תיעוד HotXLS

אירוע AfterRow

מתרחש לאחר שהרשומה שצוינה על ידי RowIndex נשמרת לגיליון העבודה

תיאור

ניתן להשתמש באירוע זה להחלת עיצוב מותנה על כל השורה באזור הפרטים

תחביר

TAfterRow = procedure (Sender: TObject; Range: IXLSRange; RowIndex: Integer) of object;
Sender TObject. מציין the TDataToXLS component that triggered the אירוע
Range IXLSRange. מייצג a טווח which contains the exported שורה
RowIndex Integer. The אינדקס of the שורה which is exported

דוגמה

דוגמה זו מגדירה את צבע הפנים של שורות אי-זוגיות לצבע ציאן

procedure TForm1.DataToXLS1AfterRow(Sender: TObject;
  Range: IXLSRange; RowIndex: Integer);
begin
  if Odd(RowIndex) then Range.Interior.Color := ColorToRGB(clAqua);
end;