Changes the
width of the columns in the range o the
height of the rows in the range to achieve the best fit
Sintassi
procedura AutoFit(Columns: boolean);
| Columns |
Boolean. True per modificare la larghezza delle colonne; False per modificare l'altezza delle righe |
Esempio
Questo esempio modifica la larghezza delle colonne nell'intervallo utilizzato per ottenere l'adattamento ottimale
Workbook.Sheets[1].UsedRange.AutoFit(True);
This example is the same to the previous
Questo esempio modifica l'altezza delle righe nell'intervallo utilizzato per ottenere l'adattamento ottimale