Restituisce un oggetto
IXLSRange che rappresenta un intervallo che è un offset rispetto all'intervallo specificato
Sintassi
property Offset[RowOffset: Integer; ColumnOffset: Integer]:
IXLSRange;
| RowOffset |
Integer. Il numero di righe (positivo, negativo o zero) di cui l'intervallo deve essere sfalsato. I valori positivi sono sfalsati verso il basso e i valori negativi verso l'alto |
| ColumnOffset |
Integer. Il numero di colonne (positivo, negativo o zero) di cui l'intervallo deve essere sfalsato. I valori positivi sono sfalsati verso destra e i valori negativi verso sinistra |
Esempio
This example demonstrates how to use Offset propery for the iteration through range of cell
With Workbook.Sheets[1].Range['A1', 'A1'] do begin
for row := 0 to 1000 do
for col := 0 to 100 do
Offset[row, col].Value := (row + 1)*(col + 1);
end;