C# | Copy Code |
---|---|
int numberOfCols = worksheet.Cells["A1:B3"].Columns.Count; // 2 columns |
Visual Basic | Copy Code |
---|---|
Dim numberOfCols As Integer = worksheet.Cells("A1:B3").Columns.Count ' 2 columns |
If the IRange represents more than one range of cells, only the first range of cells is represented in the new IRange.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family