Visual Basic (Declaration) | |
---|---|
Sub AutoFit() |
C# | |
---|---|
void AutoFit() |
C# | ![]() |
---|---|
// Automatically set the width on columns B and C. |
Visual Basic | ![]() |
---|---|
' Automatically set the width on columns B and C. |
Whan IRange.AutoFit is used on columns, the width of the
columns is set to the appropriate width immediately. However, for rows, the height is
set to the default height and a flag is set indicating that the row height is
automatic, and Excel will actually set the height when the row is displayed.
Requirements
Platforms: x86 and x64 versions of Windows 2000, Windows XP, Windows Vista, Windows 7, Windows Server 2003 (including R2) and Windows Server 2008 (including R2). SpreadsheetGear 2009 requires the Microsoft .NET Framework 2.0 and supports .NET 3.0 and .NET 3.5.