Programmer's Reference > ExcelApplication API > ColumnProperties > AutoFitWidth
Automatically sets the width of the column to the width of the widest cell value in the column.
[csharp]
colProps.AutoFitWidth();
[vbnet]
colProps.AutoFitWidth()
Copyright 2005 © SoftArtisans, Inc. All Rights Reserved.