Documentazione HotXLS

Proprietà Rows

Restituisce un'interfaccia IXLSRowsRange all'oggetto TXLSRange che rappresenta le righe nell'intervallo specificato

Sintassi

property Rows: IXLSRowsRange;

Esempio

Questo esempio copia i valori dalla seconda riga dell'intervallo A1:F10 alla terza

With Workbook.Sheets[1].Range['A1', 'F10'] do begin
  Rows[2].Font.Bold := True;
end;
Questo esempio visualizza il numero di righe nella selezione del foglio uno

With Workbook.Sheets[1].Range['A1', 'F10'] do begin
  Rows[3].Value := Rows[2].Value;
end;
This example displays the number of rows in the selection on sheet one

MessageDlg('The selection contains ' +
           inttostr(Workbook.Worksheets[1].Selection.Rows.Count) + ' rows.',
           mtInformation, [mbOk], 0);