DLL
To resize columns and rows to fit text
-
If you want to resize a column to fit text,
- Call the SSGetMaxTextColWidth function.
-
Call the SSSetColWidth or SSSetColWidthInPixels function.
To resize the width of all columns to the maximum width of the specified column, set the Col parameter to SS_ALLCOLS. To resize the width of the row header to the maximum width of the specified column, set the Col parameter to SS_HEADER.
-
If you want to resize a row to fit text,
- Call the SSGetMaxTextRowHeight function.
-
Call the SSSetRowHeight or SSSetRowHeightInPixels function.
To resize the height of all rows to the maximum height of the specified row, set the Row parameter to SS_ALLROWS. To resize the height of the column header to the maximum height of the specified row, set the Row parameter to SS_HEADER.