Resizes a column to fit its visible contents.
'Declaration
Public Function AutoSizeColumn( _
ByVal As System.Integer, _
ByVal As System.Double, _
ByVal As System.Boolean _
) As System.Double
public System.double AutoSizeColumn(
System.int ,
System.double ,
System.bool
)
Parameters
- col
- Index of the column to resize.
- extra
- Extra width to add to the column in pixels.
- allCells
- Whether to measure all cells or only the visible ones.
Return Value
The new column width in pixels.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2