Setting Column Width or Row Height
Contents
[
Hide
]
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 a worksheet.
- Access the column you want to change the width of.
- 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 any desired worksheet.
- Access the row you want to change the height of.
- Set the row height.