Changes the
width of the columns in the range or the
height of the rows in the range to achieve the best fit
Sözdizimi
procedure AutoFit(Columns: boolean);
| Columns |
Boolean. Sütunların genişliğini değiştirmek için True; satırların yüksekliğini değiştirmek için False |
Örnek
Bu örnek, kullanılan aralıktaki sütunların genişliğini en iyi uyumu sağlayacak şekilde değiştirir
Workbook.Sheets[1].UsedRange.AutoFit(True);
This example is the same to the previous
Bu örnek, kullanılan aralıktaki satırların yüksekliğini en iyi uyumu sağlayacak şekilde değiştirir