Resizes a column range to fit their content.
Syntax
'Declaration
Public Overloads Sub AutoSizeColumns( _
ByVal As System.Integer, _
ByVal As System.Integer, _
ByVal As System.Double, _
ByVal As System.Boolean, _
ByVal As System.Boolean _
)
public void AutoSizeColumns(
System.int ,
System.int ,
System.double ,
System.bool ,
System.bool
)
Parameters
- startCol
- Index of the first column to resize.
- endCol
- Index of the last column to resize.
- extra
- Extra width to add to the column, in pixels.
- allCells
- Whether to measure all cells, including those that are not currently visible.
- skipStars
- Whether to skip star-sized columns.
See Also