Setting Column Width or Row Height
This topic discusses setting the column width and row height using the Aspose.Cells.GridDesktop API. Sometimes, worksheet cells contain values that are wider than the original cell. It makes it difficult for users to read the cell content. Some users don’t like to use the right arrow key to view the complete value in a cell. To solve such problems, developers can change the column width. Changing the row height solves similar issues.
How to Set Column Width
To set the width of a column using Aspose.Cells.GridDesktop:
- Access the worksheet.
- Access the column whose width you want to change.
- Set the column width.
How to Set Row Height
To set the height of a row using Aspose.Cells.GridDesktop, please follow the steps below:
- Access the worksheet.
- Access the row whose height you want to change.
- Set the row height.