[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.IRange.AutoFit

AutoFit Method

AutoFit(bool, bool)

Changes the width of the columns or the height of the rows in the range to achieve the best fit.

Declaration
void AutoFit(bool includeCustomSize = true, bool includeHidden = true)
Sub AutoFit(Optional includeCustomSize As Boolean = True, Optional includeHidden As Boolean = True)
Parameters
Type Name Description
bool includeCustomSize

true to include rows (or columns) that contain custom size, false otherwise

bool includeHidden

true to include rows (or columns) that is hidden, false otherwise