Ajuster automatiquement la taille des lignes et colonnes Excel en C# Resizing rows and columns in a spreadsheet can save a lot of space and make it more readable. The IronXL C# library has the functionality to auto resize rows and columns. Since it is done in C#, the resize methods can be called upon all the existing rows and columns, thereby automating the manual tasks in spreadsheets. Auto Resize Rows The AutoSizeRow method automatically resizes the height of the specified row based on its value length. Another overload of AutoSizeRow takes the second parameter as a Boolean value. If true, the height of merged cells will be considered. Auto Resize Columns Use the AutoSizeColumn method to resize the width of a column based on its value length. Similar to AutoSizeRow, it is also possible to make the resizing of the column consider the width of a merged cell. Please note that all the row and column positions mentioned above follow zero-based indexing. Learn How to Auto-Size Excel Rows & Columns with C# Liens de documentation associés Voir sur Github Tutoriel connexe Guide pratique connexe Documentation de classe Télécharger IronXL DLL Signaler un problème sur cette page Prêt à commencer? Nuget Téléchargements 1,686,155 | Version : 2025.11 vient de sortir Téléchargement gratuit NuGet Total des téléchargements :1,686,155 Voir Licences
Testez dans un environnement en direct Testez en production sans filigranes.Fonctionne où que vous en ayez besoin.
Produit entièrement fonctionnel Profitez de 30 jours de produit entièrement fonctionnel.Configurez-le et faites-le fonctionner en quelques minutes.
Testez dans un environnement en direct Testez en production sans filigranes.Fonctionne où que vous en ayez besoin.
Produit entièrement fonctionnel Profitez de 30 jours de produit entièrement fonctionnel.Configurez-le et faites-le fonctionner en quelques minutes.