Click or drag to resize

ExcelRowAutoFit Method

Automatically fits row height to the minimum size required for all lines in the row cells to be visible.

Namespace:  GemBox.Spreadsheet
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version:
public void AutoFit()

Auto-fit row height is a MS Excel feature and not a file format feature. When rows are auto-fit in MS Excel user interface, MS Excel will calculate current character heights and set row height to the new numeric value.

This method will set Height to the approximate value (maxLinesCount * 255).

See Also