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: Windows 2000, Windows XP, Windows Vista, Windows Server 2003 and Windows Server 2008. SpreadsheetGear 2008 requires the Microsoft .NET Framework 2.0 and supports .NET 3.0 and .NET 3.5.